Import rsnapshot 1.2.0
rsnapshot is a filesystem snapshot utility. It can take incremental snapshots of local and remote filesystems for any number of machines. Local filesystem snapshots are handled with rsync(1). Secure remote connections are handled with rsync over ssh(1), while anonymous rsync connections simply use an rsync server. Both remote and local transfers depend on rsync. From Sigfred Haversen <bsdlist@mumak.com> help & ok mbalmer@
This commit is contained in:
parent
c87f15c150
commit
caf814c891
55
net/rsnapshot/Makefile
Normal file
55
net/rsnapshot/Makefile
Normal file
@ -0,0 +1,55 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2005/02/21 16:08:06 alek Exp $
|
||||
|
||||
COMMENT= "remote filesystem snapshot utility"
|
||||
|
||||
DISTNAME= rsnapshot-1.2.0
|
||||
CATEGORIES= net
|
||||
HOMEPAGE= http://www.rsnapshot.org/
|
||||
|
||||
MAINTAINER= Sigfred Haversen <bsdlist@mumak.com>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://www.rsnapshot.org/downloads/
|
||||
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= ::net/rsync
|
||||
|
||||
PKG_ARCH= *
|
||||
NO_REGRESS= Yes
|
||||
|
||||
SEPARATE_BUILD= concurrent
|
||||
CONFIGURE_STYLE= simple
|
||||
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}
|
||||
|
||||
SAMPLES_DIR= ${PREFIX}/share/examples/rsnapshot
|
||||
|
||||
post-build:
|
||||
sed 's,!!SAMPLES_DIR!!,${SAMPLES_DIR},g; \
|
||||
s,!!SYSCONFDIR!!,${SYSCONFDIR},g' \
|
||||
< ${WRKSRC}/rsnapshot.1 \
|
||||
> ${WRKBUILD}/rsnapshot.1
|
||||
sed 's,!!SAMPLES_DIR!!,${SAMPLES_DIR},g; \
|
||||
s,!!SYSCONFDIR!!,${SYSCONFDIR},g' \
|
||||
< ${WRKSRC}/README \
|
||||
> ${WRKBUILD}/README
|
||||
mv ${WRKBUILD}/rsnapshot ${WRKBUILD}/rsnapshot.tmp
|
||||
sed 's,!!SAMPLES_DIR!!,${SAMPLES_DIR},g; \
|
||||
s,!!SYSCONFDIR!!,${SYSCONFDIR},g' \
|
||||
< ${WRKBUILD}/rsnapshot.tmp \
|
||||
> ${WRKBUILD}/rsnapshot
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${SAMPLES_DIR}
|
||||
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/utils
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/rsnapshot ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKBUILD}/rsnapshot.1 ${PREFIX}/man/man1
|
||||
${INSTALL_DATA} ${WRKBUILD}/rsnapshot.conf.default ${SAMPLES_DIR}
|
||||
${INSTALL_DATA} ${WRKBUILD}/README ${SAMPLES_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/utils/* ${SAMPLES_DIR}/utils
|
||||
|
||||
.include <bsd.port.mk>
|
4
net/rsnapshot/distinfo
Normal file
4
net/rsnapshot/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (rsnapshot-1.2.0.tar.gz) = 7707f8d6d3ded35fb90ee4bb964aae2f
|
||||
RMD160 (rsnapshot-1.2.0.tar.gz) = 960d377f0b3b40fa4535d1cf59e6bca23f5fd76f
|
||||
SHA1 (rsnapshot-1.2.0.tar.gz) = 0c4d7db189ad2db2e3f52e6c53c8d46f1b90acd1
|
||||
SIZE (rsnapshot-1.2.0.tar.gz) = 136974
|
21
net/rsnapshot/patches/patch-README
Normal file
21
net/rsnapshot/patches/patch-README
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-README,v 1.1.1.1 2005/02/21 16:08:06 alek Exp $
|
||||
--- README.orig Wed Feb 2 05:17:47 2005
|
||||
+++ README Tue Feb 15 19:36:50 2005
|
||||
@@ -72,13 +72,13 @@ COMPATIBILITY NOTICE (Please read)
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
Once you have installed rsnapshot, you will need to configure it.
|
||||
-The default configuration file is /etc/rsnapshot.conf, although the exact path
|
||||
+The default configuration file is !!SYSCONFDIR!!/rsnapshot.conf, although the exact path
|
||||
may be different depending on how the program was installed. If this
|
||||
-file does not exist, copy /etc/rsnapshot.conf.default over to
|
||||
-/etc/rsnapshot.conf and edit it to suit your tastes. See the man page for
|
||||
+file does not exist, copy !!SAMPLES_DIR!!/rsnapshot.conf.default over to
|
||||
+!!SYSCONFDIR!!/rsnapshot.conf and edit it to suit your tastes. See the man page for
|
||||
the full list of configuration options.
|
||||
|
||||
-When /etc/rsnapshot.conf contains your chosen settings, do a quick sanity
|
||||
+When !!SYSCONFDIR!!/rsnapshot.conf contains your chosen settings, do a quick sanity
|
||||
check to make sure everything is ready to go:
|
||||
|
||||
rsnapshot configtest
|
42
net/rsnapshot/patches/patch-configure
Normal file
42
net/rsnapshot/patches/patch-configure
Normal file
@ -0,0 +1,42 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2005/02/21 16:08:06 alek Exp $
|
||||
--- configure.orig Wed Feb 2 05:17:47 2005
|
||||
+++ configure Tue Feb 15 19:38:14 2005
|
||||
@@ -3090,7 +3090,7 @@ fi
|
||||
RSNAPSHOT_SYSCONFDIR=`eval echo ${sysconfdir}`
|
||||
|
||||
if test -e "$RSNAPSHOT_SYSCONFDIR/rsnapshot.conf"; then
|
||||
- RSNAPSHOT_OLD_VERSION=`$PERL rsnapshot-program.pl -c $RSNAPSHOT_SYSCONFDIR/rsnapshot.conf check-config-version`
|
||||
+ RSNAPSHOT_OLD_VERSION=`$PERL rsnapshot -c $RSNAPSHOT_SYSCONFDIR/rsnapshot.conf check-config-version`
|
||||
|
||||
# figure out if this is a fresh install or an upgrade
|
||||
# advise the user accordingly
|
||||
@@ -3105,15 +3105,6 @@ if test -e "$RSNAPSHOT_SYSCONFDIR/rsnaps
|
||||
echo "| If you don't upgrade your config file, rsnapshot will appear to work, but |"
|
||||
echo "| rearrange the relative paths to your backup files when you aren't looking. |"
|
||||
echo "| It would be a nasty surprise, which is why we're telling you about it now. |"
|
||||
- echo "| |"
|
||||
- echo "| If you would like to automatically upgrade your config file, just type: |"
|
||||
- echo "| |"
|
||||
- echo "| \"make upgrade\" |"
|
||||
- echo "| |"
|
||||
- echo "| After you have upgraded your config file, type \"make install\". |"
|
||||
- echo "| |"
|
||||
- echo "| For more information on the upgrade, read the INSTALL file that came with |"
|
||||
- echo "| the program. |"
|
||||
echo "+----------------------------------------------------------------------------+"
|
||||
exit 0
|
||||
fi
|
||||
@@ -3130,13 +3121,4 @@ if test -e "$RSNAPSHOT_SYSCONFDIR/rsnaps
|
||||
fi
|
||||
fi
|
||||
|
||||
-echo ""
|
||||
-echo "Now type \"make install\" to install the program."
|
||||
-echo ""
|
||||
-
|
||||
-if test ! -e "$RSNAPSHOT_SYSCONFDIR/rsnapshot.conf"; then
|
||||
- echo "After rsnapshot is installed, don't forget to copy"
|
||||
- echo "$RSNAPSHOT_SYSCONFDIR/rsnapshot.conf.default to $RSNAPSHOT_SYSCONFDIR/rsnapshot.conf"
|
||||
- echo ""
|
||||
-fi
|
||||
|
106
net/rsnapshot/patches/patch-rsnapshot-program_pl
Normal file
106
net/rsnapshot/patches/patch-rsnapshot-program_pl
Normal file
@ -0,0 +1,106 @@
|
||||
$OpenBSD: patch-rsnapshot-program_pl,v 1.1.1.1 2005/02/21 16:08:06 alek Exp $
|
||||
--- rsnapshot-program.pl.orig Wed Feb 2 05:17:47 2005
|
||||
+++ rsnapshot-program.pl Tue Feb 15 19:43:17 2005
|
||||
@@ -303,7 +303,7 @@ sub find_config_file {
|
||||
# autoconf variables (may have too many slashes)
|
||||
my $autoconf_sysconfdir = '@sysconfdir@';
|
||||
my $autoconf_prefix = '@prefix@';
|
||||
- my $default_config_file = '/etc/rsnapshot.conf';
|
||||
+ my $default_config_file = '!!SYSCONFDIR!!/rsnapshot.conf';
|
||||
|
||||
# consolidate multiple slashes
|
||||
$autoconf_sysconfdir =~ s/\/+/\//g;
|
||||
@@ -4480,7 +4480,7 @@ of cron jobs. It is possible, however, t
|
||||
with an alternate configuration file.
|
||||
|
||||
All important options are specified in a configuration file, which is
|
||||
-located by default at B</etc/rsnapshot.conf>. An alternate file can be
|
||||
+located by default at B<!!SYSCONFDIR!!/rsnapshot.conf>. An alternate file can be
|
||||
specified on the command line. There are also additional options which
|
||||
can be passed on the command line.
|
||||
|
||||
@@ -4506,14 +4506,10 @@ B<-D> a firehose of diagnostic informati
|
||||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
-B</etc/rsnapshot.conf> is the default configuration file. All parameters
|
||||
-in this file must be separated by tabs. B</etc/rsnapshot.conf.default>
|
||||
+B<!!SYSCONFDIR!!/rsnapshot.conf> is the default configuration file. All parameters
|
||||
+in this file must be separated by tabs. B<!!SAMPLES_DIR!!/rsnapshot.conf.default>
|
||||
can be used as a reference.
|
||||
|
||||
-It is recommended that you copy B</etc/rsnapshot.conf.default> to
|
||||
-B</etc/rsnapshot.conf>, and then modify B</etc/rsnapshot.conf> to suit
|
||||
-your needs.
|
||||
-
|
||||
Here is a list of allowed parameters:
|
||||
|
||||
=over 4
|
||||
@@ -4731,9 +4727,6 @@ B<du_args -csh>
|
||||
=over 4
|
||||
|
||||
Arguments to be passed to du. If not specified, the default is -csh.
|
||||
-GNU du supports -csh, BSD du supports -csk, Solaris du doesn't support
|
||||
--c at all. The GNU version is recommended, since it offers the most
|
||||
-features.
|
||||
|
||||
=back
|
||||
|
||||
@@ -4928,7 +4921,7 @@ also want to run it from the command lin
|
||||
a feel for what it's doing.
|
||||
|
||||
Here is an example crontab entry, assuming that intervals B<hourly>,
|
||||
-B<daily>, B<weekly> and B<monthly> have been defined in B</etc/rsnapshot.conf>
|
||||
+B<daily>, B<weekly> and B<monthly> have been defined in B<!!SYSCONFDIR!!/rsnapshot.conf>
|
||||
|
||||
=over 4
|
||||
|
||||
@@ -4964,7 +4957,7 @@ really comes in handy.
|
||||
|
||||
Remember that these are just the times that the program runs.
|
||||
To set the number of backups stored, set the B<interval> numbers in
|
||||
-B</etc/rsnapshot.conf>
|
||||
+B<!!SYSCONFDIR!!/rsnapshot.conf>
|
||||
|
||||
To check the disk space used by rsnapshot, you can call it with the "du" argument.
|
||||
|
||||
@@ -4991,10 +4984,6 @@ B<rsnapshot du localhost/home/>
|
||||
|
||||
=back
|
||||
|
||||
-The GNU version of "du" is preferred. The BSD version works well also, but does
|
||||
-not support the -h flag (use -k instead, to see the totals in kilobytes). Other
|
||||
-versions of "du", such as Solaris, may not work at all.
|
||||
-
|
||||
=head1 EXIT VALUES
|
||||
|
||||
=over 4
|
||||
@@ -5009,7 +4998,7 @@ B<2> Some warnings occurred, but the ba
|
||||
|
||||
=head1 FILES
|
||||
|
||||
-/etc/rsnapshot.conf
|
||||
+!!SYSCONFDIR!!/rsnapshot.conf
|
||||
|
||||
=head1 SEE ALSO
|
||||
|
||||
@@ -5038,8 +5027,8 @@ B<http://lists.sourceforge.net/lists/lis
|
||||
|
||||
=head1 NOTES
|
||||
|
||||
-Make sure your /etc/rsnapshot.conf file has all elements separated by tabs.
|
||||
-See /etc/rsnapshot.conf.default for a working example file.
|
||||
+Make sure your !!SYSCONFDIR!!/rsnapshot.conf file has all elements separated by tabs.
|
||||
+See !!SAMPLES_DIR!!/rsnapshot.conf.default for a working example file.
|
||||
|
||||
Make sure you put a trailing slash on the end of all directory references.
|
||||
If you don't, you may have extra directories created in your snapshots.
|
||||
@@ -5055,7 +5044,7 @@ If you would like regular users to be ab
|
||||
there are a number of ways this can be accomplished. One such scenario
|
||||
would be:
|
||||
|
||||
-Set B<snapshot_root> to B</.private/.snapshots> in B</etc/rsnapshot.conf>
|
||||
+Set B<snapshot_root> to B</.private/.snapshots> in B<!!SYSCONFDIR!!/rsnapshot.conf>
|
||||
|
||||
Set the file permissions on these directories as follows:
|
||||
|
96
net/rsnapshot/patches/patch-rsnapshot_1
Normal file
96
net/rsnapshot/patches/patch-rsnapshot_1
Normal file
@ -0,0 +1,96 @@
|
||||
$OpenBSD: patch-rsnapshot_1,v 1.1.1.1 2005/02/21 16:08:06 alek Exp $
|
||||
--- rsnapshot.1.orig Wed Feb 2 05:17:47 2005
|
||||
+++ rsnapshot.1 Tue Feb 15 19:41:13 2005
|
||||
@@ -156,7 +156,7 @@ of cron jobs. It is possible, however, t
|
||||
with an alternate configuration file.
|
||||
.PP
|
||||
All important options are specified in a configuration file, which is
|
||||
-located by default at \fB/etc/rsnapshot.conf\fR. An alternate file can be
|
||||
+located by default at \fB!!SYSCONFDIR!!/rsnapshot.conf\fR. An alternate file can be
|
||||
specified on the command line. There are also additional options which
|
||||
can be passed on the command line.
|
||||
.PP
|
||||
@@ -179,14 +179,10 @@ The command line options are as follows:
|
||||
.RE
|
||||
.SH "CONFIGURATION"
|
||||
.IX Header "CONFIGURATION"
|
||||
-\&\fB/etc/rsnapshot.conf\fR is the default configuration file. All parameters
|
||||
-in this file must be separated by tabs. \fB/etc/rsnapshot.conf.default\fR
|
||||
+\&\fB!!SYSCONFDIR!!/rsnapshot.conf\fR is the default configuration file. All parameters
|
||||
+in this file must be separated by tabs. \fB!!SAMPLES_DIR!!/rsnapshot.conf.default\fR
|
||||
can be used as a reference.
|
||||
.PP
|
||||
-It is recommended that you copy \fB/etc/rsnapshot.conf.default\fR to
|
||||
-\&\fB/etc/rsnapshot.conf\fR, and then modify \fB/etc/rsnapshot.conf\fR to suit
|
||||
-your needs.
|
||||
-.PP
|
||||
Here is a list of allowed parameters:
|
||||
.Sp
|
||||
.RS 4
|
||||
@@ -408,9 +404,6 @@ Arguments to be passed to ssh. If not sp
|
||||
.Sp
|
||||
.RS 4
|
||||
Arguments to be passed to du. If not specified, the default is \-csh.
|
||||
-\&\s-1GNU\s0 du supports \-csh, \s-1BSD\s0 du supports \-csk, Solaris du doesn't support
|
||||
-\&\-c at all. The \s-1GNU\s0 version is recommended, since it offers the most
|
||||
-features.
|
||||
.RE
|
||||
.RE
|
||||
.RS 4
|
||||
@@ -614,7 +607,7 @@ also want to run it from the command lin
|
||||
a feel for what it's doing.
|
||||
.PP
|
||||
Here is an example crontab entry, assuming that intervals \fBhourly\fR,
|
||||
-\&\fBdaily\fR, \fBweekly\fR and \fBmonthly\fR have been defined in \fB/etc/rsnapshot.conf\fR
|
||||
+\&\fBdaily\fR, \fBweekly\fR and \fBmonthly\fR have been defined in \fB!!SYSCONFDIR!!/rsnapshot.conf\fR
|
||||
.Sp
|
||||
.RS 4
|
||||
\&\fB0 */4 * * * /usr/local/bin/rsnapshot hourly\fR
|
||||
@@ -646,7 +639,7 @@ really comes in handy.
|
||||
.PP
|
||||
Remember that these are just the times that the program runs.
|
||||
To set the number of backups stored, set the \fBinterval\fR numbers in
|
||||
-\&\fB/etc/rsnapshot.conf\fR
|
||||
+\&\fB!!SYSCONFDIR!!/rsnapshot.conf\fR
|
||||
.PP
|
||||
To check the disk space used by rsnapshot, you can call it with the \*(L"du\*(R" argument.
|
||||
.PP
|
||||
@@ -669,9 +662,6 @@ on a particular file or subdirectory.
|
||||
\&\fBrsnapshot du localhost/home/\fR
|
||||
.RE
|
||||
.PP
|
||||
-The \s-1GNU\s0 version of \*(L"du\*(R" is preferred. The \s-1BSD\s0 version works well also, but does
|
||||
-not support the \-h flag (use \-k instead, to see the totals in kilobytes). Other
|
||||
-versions of \*(L"du\*(R", such as Solaris, may not work at all.
|
||||
.SH "EXIT VALUES"
|
||||
.IX Header "EXIT VALUES"
|
||||
.RS 4
|
||||
@@ -683,7 +673,7 @@ versions of \*(L"du\*(R", such as Solari
|
||||
.RE
|
||||
.SH "FILES"
|
||||
.IX Header "FILES"
|
||||
-/etc/rsnapshot.conf
|
||||
+!!SYSCONFDIR!!/rsnapshot.conf
|
||||
.SH "SEE ALSO"
|
||||
.IX Header "SEE ALSO"
|
||||
\&\fIrsync\fR\|(1), \fIssh\fR\|(1), \fIlogger\fR\|(1), \fIsshd\fR\|(1), \fIssh\-keygen\fR\|(1), \fIperl\fR\|(1), \fIcp\fR\|(1), \fIdu\fR\|(1), \fIcrontab\fR\|(1)
|
||||
@@ -708,8 +698,8 @@ Please report bugs (and other comments)
|
||||
\&\fBhttp://lists.sourceforge.net/lists/listinfo/rsnapshot\-discuss\fR
|
||||
.SH "NOTES"
|
||||
.IX Header "NOTES"
|
||||
-Make sure your /etc/rsnapshot.conf file has all elements separated by tabs.
|
||||
-See /etc/rsnapshot.conf.default for a working example file.
|
||||
+Make sure your !!SYSCONFDIR!!/rsnapshot.conf file has all elements separated by tabs.
|
||||
+See !!SAMPLES_DIR!!/rsnapshot.conf.default for a working example file.
|
||||
.PP
|
||||
Make sure you put a trailing slash on the end of all directory references.
|
||||
If you don't, you may have extra directories created in your snapshots.
|
||||
@@ -725,7 +715,7 @@ If you would like regular users to be ab
|
||||
there are a number of ways this can be accomplished. One such scenario
|
||||
would be:
|
||||
.PP
|
||||
-Set \fBsnapshot_root\fR to \fB/.private/.snapshots\fR in \fB/etc/rsnapshot.conf\fR
|
||||
+Set \fBsnapshot_root\fR to \fB/.private/.snapshots\fR in \fB!!SYSCONFDIR!!/rsnapshot.conf\fR
|
||||
.PP
|
||||
Set the file permissions on these directories as follows:
|
||||
.Sp
|
11
net/rsnapshot/patches/patch-rsnapshot_conf_default_in
Normal file
11
net/rsnapshot/patches/patch-rsnapshot_conf_default_in
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-rsnapshot_conf_default_in,v 1.1.1.1 2005/02/21 16:08:06 alek Exp $
|
||||
--- rsnapshot.conf.default.in.orig Wed Feb 2 05:17:47 2005
|
||||
+++ rsnapshot.conf.default.in Tue Feb 15 19:29:19 2005
|
||||
@@ -123,7 +123,6 @@ loglevel 3
|
||||
#ssh_args -p 22
|
||||
|
||||
# Default arguments for the "du" program (for disk space reporting).
|
||||
-# The GNU version of "du" is preferred. See the man page for more details.
|
||||
#
|
||||
#du_args -csh
|
||||
|
13
net/rsnapshot/pkg/DESCR
Normal file
13
net/rsnapshot/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
rsnapshot is a filesystem snapshot utility. It can take incremental
|
||||
snapshots of local and remote filesystems for any number of machines.
|
||||
|
||||
Local filesystem snapshots are handled with rsync(1). Secure remote
|
||||
connections are handled with rsync over ssh(1), while anonymous rsync
|
||||
connections simply use an rsync server. Both remote and local transfers
|
||||
depend on rsync.
|
||||
|
||||
rsnapshot saves much more disk space than you might imagine. The amount
|
||||
of space required is roughly the size of one full backup, plus a copy of
|
||||
each additional file that is changed. rsnapshot makes extensive use of
|
||||
hard links, so if the file doesn't change, the next snapshot is simply a
|
||||
hard link to the exact same file.
|
19
net/rsnapshot/pkg/PLIST
Normal file
19
net/rsnapshot/pkg/PLIST
Normal file
@ -0,0 +1,19 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/21 16:08:06 alek Exp $
|
||||
bin/rsnapshot
|
||||
@man man/man1/rsnapshot.1
|
||||
share/examples/rsnapshot/
|
||||
share/examples/rsnapshot/README
|
||||
share/examples/rsnapshot/rsnapshot.conf.default
|
||||
@sample ${SYSCONFDIR}/rsnapshot.conf
|
||||
share/examples/rsnapshot/utils/
|
||||
share/examples/rsnapshot/utils/README
|
||||
share/examples/rsnapshot/utils/backup_dpkg.sh
|
||||
share/examples/rsnapshot/utils/backup_mysql.sh
|
||||
share/examples/rsnapshot/utils/backup_pgsql.sh
|
||||
share/examples/rsnapshot/utils/backup_rsnapshot_cvsroot.sh
|
||||
share/examples/rsnapshot/utils/backup_smb_share.sh
|
||||
share/examples/rsnapshot/utils/debug_moving_files.sh
|
||||
share/examples/rsnapshot/utils/make_cvs_snapshot.sh
|
||||
share/examples/rsnapshot/utils/rsnapshot_if_mounted.sh
|
||||
share/examples/rsnapshot/utils/rsnaptar
|
||||
share/examples/rsnapshot/utils/sign_packages.sh
|
Loading…
Reference in New Issue
Block a user