Update of /cvsroot/rsnapshot/rsnapshot
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5048
Modified Files:
ChangeLog rsnapshot-program.pl
Log Message:
* Fix bug with rsnapshot sync the first time it is run.
Index: rsnapshot-program.pl
===================================================================
RCS file: /cvsroot/rsnapshot/rsnapshot/rsnapshot-program.pl,v
retrieving revision 1.376
retrieving revision 1.377
diff -C2 -d -r1.376 -r1.377
*** rsnapshot-program.pl 16 Jan 2008 23:08:41 -0000 1.376
--- rsnapshot-program.pl 2 Feb 2008 22:47:36 -0000 1.377
***************
*** 2871,2875 ****
if ( ! -d "$config_vars{'snapshot_root'}/.sync" ) {
! # cp_al() will create the directory for us
# call generic cp_al() subroutine
--- 2871,2875 ----
if ( ! -d "$config_vars{'snapshot_root'}/.sync" ) {
! # If .sync does not exist but lowest.0 does, then copy that.
# call generic cp_al() subroutine
***************
*** 2877,2885 ****
my $sync_dir = "$config_vars{'snapshot_root'}/.sync";
! display_cp_al( "$interval_0", "$sync_dir" );
! if (0 == $test) {
! $result = cp_al( "$interval_0", "$sync_dir" );
! if (! $result) {
! bail("Error! cp_al(\"$interval_0\", \"$sync_dir\")");
}
}
--- 2877,2887 ----
my $sync_dir = "$config_vars{'snapshot_root'}/.sync";
! if ( -d $interval_0 ) {
! display_cp_al( "$interval_0", "$sync_dir" );
! if (0 == $test) {
! $result = cp_al( "$interval_0", "$sync_dir" );
! if (! $result) {
! bail("Error! cp_al(\"$interval_0\", \"$sync_dir\")");
! }
}
}
Index: ChangeLog
===================================================================
RCS file: /cvsroot/rsnapshot/rsnapshot/ChangeLog,v
retrieving revision 1.209
retrieving revision 1.210
diff -C2 -d -r1.209 -r1.210
*** ChangeLog 6 Apr 2007 05:38:10 -0000 1.209
--- ChangeLog 2 Feb 2008 22:47:36 -0000 1.210
***************
*** 7,10 ****
--- 7,13 ----
------------------------------------------------------------------------------
- Include rsnapshot-diff.1 in rpm.
+ - Fix bug with rsnapshot sync the first time (when .sync does not exist)
+ trying to copy hourly.0 to .sync, even if hourly.0 doesn't exist.
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413439
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
