debian/0000755000000000000000000000000012167552251007174 5ustar debian/patches/0000755000000000000000000000000012166620275010624 5ustar debian/patches/03_pod_missing_back.diff0000644000000000000000000000062511726227522015255 0ustar From: Guillaume Delacour Subject: Add missing "=back" to fix pod2man error. Origin: upstream, http://rsnapshot.cvs.sourceforge.net/viewvc/rsnapshot/rsnapshot/rsnapshot-program.pl?r1=1.408&r2=1.409&view=patch --- a/rsnapshot-program.pl +++ b/rsnapshot-program.pl @@ -6716,6 +6716,8 @@ =back +=back + =head1 USAGE B can be used by any user, but for system-wide backups debian/patches/10_space_destdir.diff0000644000000000000000000000164311737122433014567 0ustar From: Guillaume Delacour Subject: Fix space in path problem Origin: upstream, http://rsnapshot.cvs.sourceforge.net/viewvc/rsnapshot/rsnapshot/rsnapshot-program.pl?r1=1.413&r2=1.414&view=patch Bug-Debian: http://bugs.debian.org/662636 --- a/rsnapshot-program.pl 2009/03/09 05:38:23 1.413 +++ b/rsnapshot-program.pl 2009/03/27 21:54:02 1.414 @@ -3692,8 +3692,7 @@ $result = 1; if (0 == $test) { while ($tryCount < $rsync_numtries && $result !=0) { - # join is Michael Ashley's fix for some filter/space problems - $result = system(join(' ', @cmd_stack)); + $result = system(@cmd_stack); $tryCount += 1; } @@ -4728,8 +4728,7 @@ print_cmd(@cmd_stack); if (0 == $test) { - # join is Michael Ashley's fix for some filter/space problems - my $result = system(join(' ', @cmd_stack)); + my $result = system(@cmd_stack); if ($result != 0) { # bitmask return value debian/patches/11_lvm_snapshots.diff0000644000000000000000000000501311727164705014661 0ustar From: Guillaume Delacour Subject: Prepare lvm snapshot configuration Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/rsnapshot/+bug/713464 Forwarded: no --- a/rsnapshot.conf.default.in +++ b/rsnapshot.conf.default.in @@ -80,6 +80,14 @@ # #cmd_postexec /path/to/postexec/script +# Paths to lvcreate, lvremove, mount and umount commands, for use with +# Linux LVMs. +# +#linux_lvm_cmd_lvcreate @CMD_LVCREATE@ +#linux_lvm_cmd_lvremove @CMD_LVREMOVE@ +#linux_lvm_cmd_mount @CMD_MOUNT@ +#linux_lvm_cmd_umount @CMD_UMOUNT@ + ######################################### # BACKUP INTERVALS # # Must be unique and in ascending order # @@ -188,6 +196,26 @@ # #rsync_numtries 0 +# LVM parameters. Used to backup with creating lvm snapshot before backup +# and removing it after. This should ensure consistency of data in some special +# cases +# +# LVM snapshot(s) size (lvcreate --size option). +# +#linux_lvm_snapshotsize 100M + +# Name to be used when creating the LVM logical volume snapshot(s). +# +#linux_lvm_snapshotname rsnapshot + +# Path to the LVM Volume Groups. +# +#linux_lvm_vgpath /dev + +# Mount point to use to temporarily mount the snapshot(s). +# +#linux_lvm_mountpath /path/to/mount/lvm/snapshot/during/backup + ############################### ### BACKUP POINTS / SCRIPTS ### ############################### @@ -201,6 +229,8 @@ #backup /home/foo/My Documents/ localhost/ #backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog #backup_script /usr/local/bin/backup_pgsql.sh localhost/postgres/ +# You must set linux_lvm_* parameters below before using lvm snapshots +#backup lvm://vg0/xen-home/ lvm-vg0/xen-home/ # EXAMPLE.COM #backup_script /bin/date "+ backup of example.com started at %c" unused1 --- a/configure.ac +++ b/configure.ac @@ -176,6 +176,37 @@ AC_SUBST(CMD_SSH, "cmd_ssh $SSH") +dnl +dnl LVM COMMANDS CHECK (optional programs) +dnl +dnl lvcreate +AC_PATH_PROG(LVCREATE, lvcreate, no) +if test "$LVCREATE" = "no"; then + LVCREATE=/path/to/lvcreate +fi +AC_SUBST(CMD_LVCREATE, "$LVCREATE") + +dnl lvremove +AC_PATH_PROG(LVREMOVE, lvremove, no) +if test "$LVREMOVE" = "no"; then + LVREMOVE=/path/to/lvremove +fi +AC_SUBST(CMD_LVREMOVE, "$LVREMOVE") + +dnl mount +AC_PATH_PROG(MOUNT, mount, no) +if test "$MOUNT" = "no"; then + MOUNT=/path/to/mount +fi +AC_SUBST(CMD_MOUNT, "$MOUNT") + +dnl umount +AC_PATH_PROG(UMOUNT, umount, no) +if test "$UMOUNT" = "no"; then + UMOUNT=/path/to/umount +fi +AC_SUBST(CMD_UMOUNT, "$UMOUNT") + dnl dnl LOGGER CHECK (optional program) debian/patches/01_rsnapshot_conf.diff0000644000000000000000000001070511727464742015016 0ustar From: Guillaume Delacour Subject: rsnapshot Debian configuration choices * Change (default commented) log filename as per Debian Policy section 10.8 * Change default Debian directory for snapshots * Change path for rsnapshot-diff * Manpage: point to the real default file and binary on Debian systems * Replace interval (deprecated alias) with retain * Use GNU cp, to take care of special files * Document use of stop_on_stale_lockfile option Forwarded: not-needed --- a/rsnapshot.conf.default.in +++ b/rsnapshot.conf.default.in @@ -24,7 +24,7 @@ # All snapshots will be stored under this root directory. # -snapshot_root /.snapshots/ +snapshot_root /var/cache/rsnapshot/ # If no_create_root is enabled, rsnapshot will not automatically create the # snapshot_root directory. This is particularly useful if you are backing @@ -41,7 +41,7 @@ # # See the README file or the man page for more details. # -#@CMD_CP@ +@CMD_CP@ # uncomment this to use the rm program instead of the built-in perl routine. # @@ -68,7 +68,7 @@ # Uncomment this to specify the path to rsnapshot-diff. # -#cmd_rsnapshot_diff /usr/local/bin/rsnapshot-diff +#cmd_rsnapshot_diff /usr/bin/rsnapshot-diff # Specify the path to a script (and any optional arguments) to run right # before rsnapshot syncs files @@ -86,10 +86,10 @@ # i.e. hourly, daily, weekly, etc. # ######################################### -interval hourly 6 -interval daily 7 -interval weekly 4 -#interval monthly 3 +retain hourly 6 +retain daily 7 +retain weekly 4 +#retain monthly 3 ############################################ # GLOBAL OPTIONS # @@ -113,7 +113,7 @@ # If you enable this, data will be written to the file you specify. The # amount of data written is controlled by the "loglevel" parameter. # -#logfile /var/log/rsnapshot +#logfile /var/log/rsnapshot.log # If enabled, rsnapshot will write a lockfile to prevent two instances # from running simultaneously (and messing up the snapshot_root). @@ -122,6 +122,12 @@ # lockfile /var/run/rsnapshot.pid +# By default, rsnapshot check lockfile, check if PID is running +# and if not, consider lockfile as stale, then start +# Enabling this stop rsnapshot if PID in lockfile is not running +# +#stop_on_stale_lockfile 0 + # Default rsync args. All rsync commands have at least these options set. # #rsync_short_args -a --- a/rsnapshot-program.pl +++ b/rsnapshot-program.pl @@ -6120,10 +6120,10 @@ =head1 CONFIGURATION B is the default configuration file. All parameters -in this file must be separated by tabs. B +in this file must be separated by tabs. B can be used as a reference. -It is recommended that you copy B to +It is recommended that you copy B to B, and then modify B to suit your needs. @@ -6917,7 +6917,7 @@ =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. +See /usr/share/doc/rsnapshot/examples/rsnapshot.conf.default.gz 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. --- a/rsnapshot-program.pl +++ b/rsnapshot-program.pl @@ -6733,13 +6733,13 @@ =over 4 -B<0 */4 * * * /usr/local/bin/rsnapshot hourly> +B<0 */4 * * * /usr/bin/rsnapshot hourly> -B<50 23 * * * /usr/local/bin/rsnapshot daily> +B<50 23 * * * /usr/bin/rsnapshot daily> -B<40 23 * * 6 /usr/local/bin/rsnapshot weekly> +B<40 23 * * 6 /usr/bin/rsnapshot weekly> -B<30 23 1 * * /usr/local/bin/rsnapshot monthly> +B<30 23 1 * * /usr/bin/rsnapshot monthly> =back @@ -6833,13 +6833,13 @@ =over 4 -B<0 */4 * * * /usr/local/bin/rsnapshot sync && /usr/local/bin/rsnapshot hourly> +B<0 */4 * * * /usr/bin/rsnapshot sync && /usr/bin/rsnapshot hourly> -B<50 23 * * * /usr/local/bin/rsnapshot daily> +B<50 23 * * * /usr/bin/rsnapshot daily> -B<40 23 1,8,15,22 * * /usr/local/bin/rsnapshot weekly> +B<40 23 1,8,15,22 * * /usr/bin/rsnapshot weekly> -B<30 23 1 * * /usr/local/bin/rsnapshot monthly> +B<30 23 1 * * /usr/bin/rsnapshot monthly> =back debian/patches/12_include_conf_with_arguments.diff0000644000000000000000000000120311726227605017525 0ustar From: Guillaume Delacour Subject: Use is_valid_script() for checking include_conf `backticks` Origin: upstream, http://rsnapshot.cvs.sourceforge.net/viewvc/rsnapshot/rsnapshot/rsnapshot-program.pl?r1=1.400&r2=1.401&view=patch Bug-Debian: http://bugs.debian.org/653285 --- a/rsnapshot-program.pl 2008/09/05 10:55:56 1.400 +++ b/rsnapshot-program.pl 2008/09/05 11:02:35 1.401 @@ -568,7 +568,7 @@ $value =~ /^`(.*)`$/; if( (defined($value) && -f $value && -r $value) || - (defined($1) && -x $1) + (defined($1) && is_valid_script($1)) ) { $line_syntax_ok = 1; parse_config_file($value); debian/patches/13_print_warn.diff0000644000000000000000000000060012164110502014121 0ustar From: Nicolas Courtel Subject: WARNING prefix missing in some warning messages Bug-Debian: http://bugs.debian.org/688790 Forwarded: https://sourceforge.net/p/rsnapshot/patches/14/ --- a/rsnapshot-program.pl +++ b/rsnapshot-program.pl @@ -2028,7 +2028,7 @@ } # write to log - log_msg($str, $level); + log_warn($str, $level); } # accepts string, and level debian/patches/series0000644000000000000000000000037612166620275012047 0ustar 01_rsnapshot_conf.diff 03_pod_missing_back.diff 05_backup_pgsql.diff 06_fix_random_file_verify.diff 08_manpage_hourly_to_daily.diff 09_strip_backtick.diff 10_space_destdir.diff 11_lvm_snapshots.diff 12_include_conf_with_arguments.diff 13_print_warn.diff debian/patches/05_backup_pgsql.diff0000644000000000000000000000275511726223276014447 0ustar From: Guillaume Delacour Subject: Fix path call pg_dumpall Bug-Debian: http:/bugs.debian.org/500082 Forwarded: not-needed --- a/utils/backup_pgsql.sh +++ b/utils/backup_pgsql.sh @@ -3,18 +3,16 @@ ############################################################################## # backup_pgsql.sh # +# Debian modifications by Antony Gelberg +# # by Nathan Rosenquist # http://www.rsnapshot.org/ # # This is a simple shell script to backup a PostgreSQL database with rsnapshot. # # The assumption is that this will be invoked from rsnapshot. Also, since it -# will run unattended, the user that runs rsnapshot (probably root) should have -# a .pgpass file in their home directory that contains the password for the -# postgres user. For example: -# -# /root/.pgpass (chmod 0600) -# *:*:*:postgres:thepassword +# will run unattended, the user that runs rsnapshot (probably root) must su +# to Debian's postgres user. # # This script simply needs to dump a file into the current working directory. # rsnapshot handles everything else. @@ -25,7 +23,12 @@ umask 0077 # backup the database -/usr/local/pgsql/bin/pg_dumpall -Upostgres > pg_dumpall.sql +su -c 'pg_dumpall > ~/pg_dumpall.sql' postgres # make the backup readable only by root -/bin/chmod 600 pg_dumpall.sql +chown root.root ~postgres/pg_dumpall.sql +chmod 600 ~postgres/pg_dumpall.sql + +# Move the backup to current working directory +mv ~postgres/pg_dumpall.sql `pwd` + debian/patches/06_fix_random_file_verify.diff0000644000000000000000000000175511741115536016501 0ustar From: Guillaume Delacour Subject: Fix some error on upstream example shell script utils/random_file_verify.sh. Forwarded: no --- a/utils/random_file_verify.sh +++ b/utils/random_file_verify.sh @@ -32,10 +32,10 @@ if [ $? -eq 0 ] then - echo "SUCCESS: Randomly generated test file created." >> + echo "SUCCESS: Randomly generated test file created." >>\ /var/log/localbackup.log else - echo "FAILED: Randomly generated test file not created." >> + echo "FAILED: Randomly generated test file not created." >>\ /var/log/localbackup.log msubject="Local Backup has ERRORS!" fi @@ -60,10 +60,10 @@ if [ $? -eq 0 ] then - echo "PASSED: Randomly generated test file is the same." >> + echo "PASSED: Randomly generated test file is the same." >>\ /var/log/localbackup.log else - echo "FAILED: Randomly generated test file differs." >> + echo "FAILED: Randomly generated test file differs." >>\ /var/log/localbackup.log msubject="Local Backup has ERRORS!" fi debian/patches/08_manpage_hourly_to_daily.diff0000644000000000000000000000067111727463544016675 0ustar From: Guillaume Delacour Subject: Add precision on weekly rotation Bug-Debian: http:/bugs.debian.org/573253 --- a/rsnapshot-program.pl +++ b/rsnapshot-program.pl @@ -6268,7 +6268,7 @@ =back -daily.0/ will be copied from hourly.5/, and weekly.0/ will be copied from daily.6/ +daily.0/ will be moved from hourly.5/, and weekly.0/ will be copied from daily.6/ hourly.0/ will be rsynced directly from the filesystem. debian/patches/09_strip_backtick.diff0000644000000000000000000000140711726227557014773 0ustar From: Guillaume Delacour Subject: Strip backtick before inclusion Origin: upstream, http://rsnapshot.cvs.sourceforge.net/viewvc/rsnapshot/rsnapshot/rsnapshot-program.pl?r1=1.405&r2=1.406&view=patch Bug-Debian: http://bugs.debian.org/614167 --- a/rsnapshot-program.pl 2008/10/13 21:00:35 1.405 +++ b/rsnapshot-program.pl 2008/12/04 16:02:09 1.406 @@ -504,8 +504,8 @@ # open the config file my $config_file = shift() || $config_file; my $CONFIG; - if($config_file =~ /^`.*`$/) { - open($CONFIG, "$config_file|") || + if($config_file =~ /^`(.*)`$/) { + open($CONFIG, "$1|") || bail("Couldn't execute \"$config_file\" to get config information\nAre you sure you have permission?"); } else { $CONFIG = IO::File->new($config_file) debian/control0000644000000000000000000000167512166622536010613 0ustar Source: rsnapshot Section: utils Priority: optional Maintainer: Guillaume Delacour Uploaders: MJ Ray (Debian) Build-Depends: debhelper (>= 8) Build-Depends-Indep: autotools-dev, rsync, openssh-client | ssh-client, lvm2, udev, dh-autoreconf Standards-Version: 3.9.4 Homepage: http://www.rsnapshot.org/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/rsnapshot.git Vcs-Git: git://anonscm.debian.org/collab-maint/rsnapshot.git Package: rsnapshot Architecture: all Depends: ${perl:Depends}, rsync, logrotate, ${misc:Depends}, liblchown-perl Recommends: openssh-client | ssh-client Description: local and remote filesystem snapshot utility rsnapshot is an rsync-based filesystem snapshot utility. It can take incremental backups of local and remote filesystems for any number of machines. rsnapshot makes extensive use of hard links, so disk space is only used when absolutely necessary. debian/changelog0000644000000000000000000002323312166623441011050 0ustar rsnapshot (1.3.1-4) unstable; urgency=low * debian/patches/01_rsnapshot_conf: Refresh patch to fix path of rsnapshot in manpage, thanks Simon Kainz (Closes: #661673) * debian/patches/08_manpage_hourly_to_daily: Don't patch rsnapshot.1 (as it is automatically generated) * debian/patches/10_space_destdir: Completely refresh with upstream fix (Closes: #662636) * debian/patches/11_lvm_snapshots: Don't patch Makefile.in (as it is automatically generated at build time) * debian/patches/12_include_conf_with_arguments: Cherry-pick upstream backtick check in include_conf (Closes: #653285) * debian/rules: Backup/restore autogenerated upstream file Makefile.in * debian/copyright: Update format to DEP5 * debian/control: Bump Standards-Version 3.9.4 (no changes needed) * Rename all patch extensions with .diff and document each header according DEP3 and change Vcs-Browse and Vcs-Git, point to anonscm.debian.org * debian/patches/13_print_warn: missing WARNING prefix in log files thanks Nicolas Courtel (Closes: #688790) * debian/docs: Remove docs/HOWTOs/rsnapshot-HOWTO.en.html, as it was already in debian/doc-base -- Guillaume Delacour Sun, 30 Jun 2013 22:38:18 +0200 rsnapshot (1.3.1-3) unstable; urgency=low * debian/patches/01_rsnapshot_conf: + Remove one tab for alignment in retain + Uncomment cmd_cp to enable use of GNU cp (Closes: #617509) + Add stop_on_stale_lockfile option (Closes: #629309) + Refresh comments * debian/control: + Bump Standards-Version 3.9.2 (no changes needed) + Align Build-Depends-Indep -- Guillaume Delacour Wed, 22 Jun 2011 22:08:45 +0200 rsnapshot (1.3.1-2) unstable; urgency=low * Reorganize patches: Merge 02_default_rsnapshot_conf_manpage and 04_default_backup_dir to 01_logfile_rsnapshot_conf, renamed 01_rsnapshot_conf * Refresh debian/patches/01_rsnapshot_conf: + Change commented path to rsnapshot-diff (Closes: #572751) + Replace interval (deprecated alias) with retain * debian/patches/08_manpage_hourly_to_daily: + Add precision on weekly rotation (Closes: #573253) * debian/patches/11_lvm_snapshots: Prepare use of lvm snapshot (LP: #713464) * debian/patches/09_strip_backtick: Strip backtick in include_conf (Closes: #614167) * debian/patches/10_space_destdir: Remove backslash in destpath (Closes: #609443) * debian/control: + Add ssh-client as virtual alternative in Depends + Bump Standards-Version 3.9.1 (no changes needed) + Bump debhelper version to 8 (debian/compat too) + Add lvm2, udev and dh-autoreconf as Build-Depends-Indep (path detection of binaries) * Switch to dpkg-source 3.0 (quilt) format + Remove {un,}patch, quilt inclusion in debian/rules + Delete unnecessary debian/README.source + Remove Build-Depends on quilt * debian/rules: Change to use more recent template with debhelper 8 * debian/manpages: Add rsnapshot.1 and rsnapshot-diff.1 * debian/README.Debian: Delete unnecessary spaces * debian/docs: Remove docs/HOWTOs/rsnapshot-HOWTO.en.html (appears twice in /usr/share/doc/rsnapshot/{,html}) * debian/watch: remove unnecessary default comments -- Guillaume Delacour Sun, 27 Feb 2011 20:33:46 +0100 rsnapshot (1.3.1-1) unstable; urgency=low * New maintainer * New upstream release (Closes: #548966, #501992, #517657, #413439) * debian/control: - Bump Standards-Version 3.8.3.0 - Homepage moved in extended description - Recommend openssh-client instead of ssh (Closes: #422262) - Depend on liblchown-perl (Closes: #497928) - Build-Depends-Indep on openssh-client, to have ssh client path in rsnapshot.conf at build time (Closes: #506760) * debian/postrm: Add "set -e" to script * debian/rules: - remove warning ignorement ("-") in clean rule, test Makefile - Bump debhelper compat version to 7 (dh_prep replacement) - Delete unnecessary commented template based rules * debian/copyright: Link to GPL-2 * debian/patches/01_logfile_rsnapshot_conf: change commented /var/log/rsnapshot to /var/log/rsnapshot.log in rsnapshot.conf (Closes: #506218) * debian/patches/02_default_rsnapshot_conf_manpage: point to /usr/share/doc/rsnapshot/examples/rsnapshot.conf.default.gz instead of non-existent /etc/rsnapshot.conf.default file in manpage (Closes: #411317) * debian/patches/04_default_backup_dir: Really set /var/cache/rsnapshot as default snapshot dir * debian/patches/05_backup_pgsql: Modify backup_pgsql.sh according Debian specific (Closes: #500082) Thanks to Antony Gelberg * debian/patches/06_fix_random_file_verify: Fix some error on upstream example utils/random_file_verify.sh * Add doc-base support to html doc (Closes: #504920) * debian/lintian-overrides: add override on /var/cache/rsnapshot perms (700 instead of 755) * debian/README.Debian: add some explanations on rsnapshot behavior (Closes: #496908) -- Guillaume Delacour Wed, 18 Nov 2009 00:05:53 +0000 rsnapshot (1.3.0-2) unstable; urgency=low * Add experimental release to unstable (Closes: #460579) -- MJ Ray (Debian) Wed, 30 Jan 2008 19:02:48 +0000 rsnapshot (1.3.0-1) experimental; urgency=low * New upstream release * Updated README.Debian * Updated debian/copyright * Updated html/rsnapshot-howto.html with newer html/rsnapshot-HOWTO.en.html * Debian Policy compliance upgraded to 3.7.2.2 * Now creates default rsnapshot_root directory with 0700 permissions instead of 0755 * Updated package description to make it easier to spot rsnapshot when searching for "rsync" or "backup" * Dropped old (pre-1.2) configuration files compatibility patch, updated NEWS file accordingly * Fixed default config file had spaces where only tabs should be in backup_scripts examples -- Simon Boulet Wed, 22 Nov 2006 15:44:33 -0500 rsnapshot (1.2.9-1) unstable; urgency=low * New upstream release * Updated Free Software Foundation address in debian/copyright * Added rsnapshot-diff man page from CVS * Switched autotools-dev and rsync back to Build-Depends-Indep -- Simon Boulet Mon, 5 Jun 2006 22:03:45 -0400 rsnapshot (1.2.1-2) unstable; urgency=low * New maintainer * Switched back to Build-Depends as per Policy Manual section 7.6 * Updated debian/copyright * Merged upstream trailing slashes patch (Closes: #357535) -- Simon Boulet Wed, 17 May 2006 22:01:44 -0400 rsnapshot (1.2.1-1.1) unstable; urgency=high * Non-maintainer upload. * Remove trailing slashes of dirs to cp command (Closes: #339845). -- Luk Claes Fri, 17 Mar 2006 23:34:50 +0100 rsnapshot (1.2.1-1) unstable; urgency=low * New upstream release - fix a security hole where a local user can get ownership of an arbitrary file by creating a symlink to it and let root backup that symlink -- Christoph Wegscheider Sun, 10 Apr 2005 10:52:23 +0200 rsnapshot (1.2.0-2) unstable; urgency=low * avoid unnecessary aclocal run by touching aclocal.m4, Makefile.in and configure before ./configure in debian/rules (Closes: #299316) * removed du from Recommends (Closes: #298164) * add small debian specific note in manpage -- Christoph Wegscheider Sat, 9 Apr 2005 17:25:07 +0200 rsnapshot (1.2.0-1) unstable; urgency=low * New upstream release - Closes: #289439: does not delete excluded directories - Closes: #264818: one_fs broken - Closes: #266569: rsnapshot doesn't give useful info on errors - Closes: #261678: all directorys have same mtime * updated doc/rsnapshot-howto.html * added the Upgrade section from INSTALL as UPGRADE.gz * added NEWS.Debian.gz * updated README.Debian -- Christoph Wegscheider Sun, 6 Feb 2005 14:15:59 +0100 rsnapshot (1.1.6-6) unstable; urgency=low * corrected watch file. * fixed the cron file and intervals to more reasonable values, thx Chris for pointing me to it. * added explanation of interval names (Closes: #262323). * added explanation why link_dest is disabled (Closes: #262326). -- Christoph Wegscheider Sat, 7 Aug 2004 00:40:43 +0200 rsnapshot (1.1.6-5) unstable; urgency=low * updated README.Debian. * added Uploaders: MJ Ray (Debian) . * updated to Standards-Version 3.6.1.1. -- Christoph Wegscheider Fri, 16 Jul 2004 12:50:00 +0200 rsnapshot (1.1.6-4) unstable; urgency=low * added rsnapshot howto. * added example config file. * enabled /var/log/rsnapshot.log by default. * using dh_perl now for perl dependencies. -- Christoph Wegscheider Thu, 15 Jul 2004 20:31:10 +0200 rsnapshot (1.1.6-3) unstable; urgency=low * set arch to all. * changed Build-Depends to Build-Depends-Indep. * added explicit copyright statement (GPL) for the manpage after consultation with the upstream author. -- Christoph Wegscheider Sun, 11 Jul 2004 01:21:53 +0200 rsnapshot (1.1.6-2) unstable; urgency=low * added Build-Depend on autotools-dev. * changed copyright after discussion with the upstream author. * set save debian defaults in the conffile. * added sample cron file. -- Christoph Wegscheider Thu, 8 Jul 2004 08:13:20 +0200 rsnapshot (1.1.6-1) unstable; urgency=low * Initial Release. * Closes: #257913: ITP: rsnapshot -- a local and remote filesystem snapshot utility -- Christoph Wegscheider Tue, 6 Jul 2004 20:19:39 +0200 debian/rsnapshot.examples0000644000000000000000000000003611726220160012743 0ustar utils/ rsnapshot.conf.default debian/compat0000644000000000000000000000000211726220160010361 0ustar 8 debian/postrm0000644000000000000000000000017211726220160010432 0ustar #!/bin/sh set -e #DEBHELPER# # purge the log files if [ "$1" = purge ] ; then rm -f /var/log/rsnapshot.log* fi debian/README.Debian0000644000000000000000000000343611726220160011232 0ustar rsnapshot for Debian ==================== UPGRADE ------- If you are upgrading from an old (pre 1.2) version of rsnapshot, you will need to change your backup destination paths as rsnapshot uses now the --relative rsync option. As of version 1.3 of the Debian package, rsnapshot will not start if your configuration file is not upgraded. There are no special instructions for upgrading from rsnapshot 1.2.x to 1.3.x, since both use config_version 1.2. If you are not sure whether you need to do anything to upgrade your old rsnapshot.conf, you can run rsnapshot upgrade-config-file or rsnapshot -c /etc/rsnapshot.conf upgrade-config-file All users upgrading from and old (pre 1.2) version are encouraged to read /usr/share/doc/rsnapshot/Upgrading_from_1.1.gz. GENERAL ------- Make sure to adapt /etc/rsnapshot.conf to your needs. You can run it either manually or via cron. A sample cron file is provided in /etc/cron.d/rsnapshot. To activate it, uncomment the relevant lines. Currently the default directory for the snapshots is /var/cache/rsnapshot/. You can change this in the config file. Unless the directory is empty, it will not be deleted if the package is purged. For more information, please read the complete rsnapshot HOWTO from /usr/share/doc/rsnapshot/html/rsnapshot-HOWTO.en.html The default configuration file is available at /usr/share/doc/rsnapshot/examples/rsnapshot.conf.default.gz Important considerations on config file (from #496908): The first interval in the configuration file is always the one that get synced from the "backup" sources specified at the bottom of your configuration file. All the other intervals simply moves the oldest copy of the interval listed immediately above in the configuration file. -- Simon Boulet , Mon, 13 Nov 2006 14:39:22 -0500 debian/doc-base0000644000000000000000000000060112166623466010577 0ustar Document: rsnapshot Title: Rsnapshot Documentation Author: David Cantrell Abstract: rsnapshot is a filesystem backup utility based on rsync. It is possible to take snapshots of your filesystems at different points in time. Section: File Management Format: HTML Index: /usr/share/doc/rsnapshot/html/rsnapshot-HOWTO.en.html Files: /usr/share/doc/rsnapshot/html/rsnapshot-HOWTO.en.html debian/dirs0000644000000000000000000000006111726220160010044 0ustar var/cache/rsnapshot usr/share/doc/rsnapshot/html debian/cron.d0000644000000000000000000000073511726220160010276 0ustar # This is a sample cron file for rsnapshot. # The values used correspond to the examples in /etc/rsnapshot.conf. # There you can also set the backup points and many other things. # # To activate this cron file you have to uncomment the lines below. # Feel free to adapt it to your needs. # 0 */4 * * * root /usr/bin/rsnapshot hourly # 30 3 * * * root /usr/bin/rsnapshot daily # 0 3 * * 1 root /usr/bin/rsnapshot weekly # 30 2 1 * * root /usr/bin/rsnapshot monthly debian/lintian-overrides0000644000000000000000000000010311726220160012536 0ustar rsnapshot: non-standard-dir-perm var/cache/rsnapshot/ 0700 != 0755 debian/docs0000644000000000000000000000004412166623161010043 0ustar README TODO docs/Upgrading_from_1.1 debian/watch0000644000000000000000000000011211726220160010206 0ustar version=3 http://www.rsnapshot.org/downloads/rsnapshot-([\d\.]*)\.tar\.gz debian/manpages0000644000000000000000000000003511726220160010677 0ustar rsnapshot.1 rsnapshot-diff.1 debian/source/0000755000000000000000000000000011726220160010463 5ustar debian/source/format0000644000000000000000000000001411726220160011671 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000464111737124056011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: rsnapshot Upstream-Contact: rsnapshot-discuss@lists.sourceforge.net Source: http://www.rsnapshot.org/downloads/ Files: * Copyright: 2003-2005, Nathan Rosenquist Portions Copyright 2002-2006 Mike Rubel, Carl Wilhelm Soderstrom, Ted Zlatanov, Carl Boe, Shane Liebling, Bharat Mediratta, Peter Palfrader, Nicolas Kaiser, David Cantrell, Chris Petersen, Robert Jackson, Justin Grote, David Keegel, Alan Batie License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2004, Christoph Wegscheider 2008, Simon Boulet 2009, Guillaume Delacour License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/rules0000755000000000000000000000300711727465217010262 0ustar #!/usr/bin/make -f # -*- makefile -*- UPSTREAM_AUTOCONF_GENERATED_FILES = rsnapshot.1 rsnapshot-diff.1 INSTALL \ aclocal.m4 configure install-sh missing mkinstalldirs Makefile.in override_dh_auto_clean: [ ! -f Makefile ] || $(MAKE) clean override_dh_autoreconf_clean: dh_autoreconf_clean # restore upstream autoconf automatically generated files $(foreach var,$(UPSTREAM_AUTOCONF_GENERATED_FILES), \ [ ! -f $(var).bak ] || cp -f $(var).bak $(var);) override_dh_autoreconf: # backup upstream autoconf automatically generated files $(foreach var,$(UPSTREAM_AUTOCONF_GENERATED_FILES), \ cp -f $(var) $(var).bak;) dh_autoreconf override_dh_install: dh_install # rename default configfile mv $(CURDIR)/debian/rsnapshot/etc/rsnapshot.conf.default \ $(CURDIR)/debian/rsnapshot/etc/rsnapshot.conf # lintian override on /var/cache/rsnapshot perms mkdir -p $(CURDIR)/debian/rsnapshot/usr/share/lintian/overrides/ cp $(CURDIR)/debian/lintian-overrides \ $(CURDIR)/debian/rsnapshot/usr/share/lintian/overrides/rsnapshot # html doc, see debian/doc-base cp $(CURDIR)/docs/HOWTOs/rsnapshot-HOWTO.en.html \ $(CURDIR)/debian/rsnapshot/usr/share/doc/rsnapshot/html/ override_dh_installexamples: # Remove unnecessary extra license file, (Policy Manual section 12.5) dh_installexamples -X utils/rsnapshotdb/LICENSE.txt override_dh_fixperms: dh_fixperms # Fix permissions of the default rsnapshot_root directory chmod 0700 $(CURDIR)/debian/rsnapshot/var/cache/rsnapshot %: dh $@ --with autotools_dev --with autoreconf debian/TODO.Debian0000644000000000000000000000014411726220160011033 0ustar Add user prompting for delete archives when purge the package (like mysql databases for example...) debian/NEWS0000644000000000000000000000212111726220160007656 0ustar rsnapshot (1.3.0-1) unstable; urgency=low Until now, the Debian package of rsnapshot included a patch to ensure backward compatibility with pre-1.2 configuration files (see below). This patch has been dropped in this release, and all users are now forced to upgrade their configuration files to the 1.2 format. Please see the UPGRADE section from /usr/share/doc/rsnapshot/README.Debian if you are still using 1.1.x configuration files. -- Simon Boulet Mon, 13 Nov 2006 13:16:38 -0500 rsnapshot (1.2.0-1) unstable; urgency=low In this release the default rsync long_args have changed, --relative and --delete-excluded have been added. --relative will affect the destination of the backup points. However your current config will continue to work in a compatibility mode where --relative is not used. To benefit of all new features and bugfixes you have to change your config file. Be sure to read /usr/share/doc/rsnapshot/README.Debian -- Christoph Wegscheider Fri, 4 Feb 2005 12:33:31 +0100 debian/rsnapshot.logrotate0000644000000000000000000000010311726220160013120 0ustar /var/log/rsnapshot.log { rotate 6 monthly compress missingok }