Tony Nelson writes:

> I'm running BackupPC-2.1.2 quite successfully on my network.  Over the past
> couple of days something very odd has happened backing up Lotus Notes mail
> files on one particular server.  Looking at the transfer log I find:
> 
> [snip]
> create   644   400/401   163053568 mail/cbotwin.nsf
>   create   644   400/401    39583744 mail/cfrierso.nsf
> mail/ckienle.nsf: md4 doesn't match: will retry in phase 1; file removed
>   create   644   400/401   815529984 mail/claforge.nsf
>   create   644   400/401   132120576 mail/dfischer.nsf
> [snip]
> 
> and further down
> 
> [snip]
>   create   644   400/401   919076864 mail/ckienle.nsf
>   delete   644   400/401    33030144 mail/spursley.nsf
>   delete   644   400/401   409468928 mail/nrivera.nsf
> [snip]
> 
> When viewing the backup in the GUI, the only file I find is this directory is
> mail/ckienle.nsf, where there should be around 100 files.  All the rest are
> listed as having been deleted (as above).
> 
> Any ideas what might be going wrong?
> 
> This backup has been working fine for well over a year, using rsncd to
> cygwin-rsyncd running on a win2003 server.
> 
> Any help would be greatly appreciated.

This is a bug.  Here's a patch that fixes this in my tests.
I'll roll this into a new patch-level 1 set of patches for
2.1.2.

Craig

--- lib/BackupPC/Xfer/RsyncFileIO.pm    2005-09-05 16:21:21.000000000 -0700
+++ lib/BackupPC/Xfer/RsyncFileIO.pm    2006-02-04 19:18:32.195202376 -0800
@@ -405,6 +405,11 @@
     my($fio, $d) = @_;
     my($poolWrite);
 
+    #
+    # Don't write attributes on 2nd phase - they're already
+    # taken care of during the first phase.
+    #
+    return if ( $fio->{phase} > 0 );
     if ( !defined($d) ) {
         #
         # flush all entries (in reverse order)
@@ -932,6 +937,7 @@
 
     close($fio->{rxInFd})  if ( defined($fio->{rxInFd}) );
     unlink("$fio->{outDirSh}RStmp") if  ( -f "$fio->{outDirSh}RStmp" );
+    $fio->{phase} = $phase;
 
     #
     # Check the final md4 digest


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to