Niels writes:

> I do not see an error message here, just the abborted :
> 
> full backup started for directory /hsphere
> Running: /usr/bin/ssh -q -x -l root 192.100.100.1 /usr/bin/rsync --server
> --sender --numeric-ids --perms --owner --group -D --links --hard-links
> --times --block-size=2048 --recursive --ignore-times . /hsphere/
> Xfer PIDs are now 28820
> Got remote protocol 28
> Negotiated protocol version 28
> Xfer PIDs are now 28820,28828
> [ skipped 18234 lines ]
> Done: 16075 files, 592804209 bytes
> Backup aborted ()

I've heard one report of this before.  I'd like to get to the bottom
of it.

Here is a set of (untested) patches to BackupPC_dump that prints debug
information related to how xferOK is set at the end of the backup.  It
should emit output in the XferLOG file.  If xferOK is 0 in the first
debug code then we'll need to add some code to BackupPC::Xfer::Rsync.

If you are unfamiliar with patch, do "man patch" or simply manually
add the lines that start with "+" - but don't include the "+" in the
text you copy.  Keep a backup copy of BackupPC_dump.

Please send me the entire XferLOG file off-list.

Thanks for your help.

Craig

--- bin/BackupPC_dump   2007-02-12 11:44:53.887958400 -0800
+++ bin/BackupPC_dump.debug     2007-02-20 00:40:08.604586200 -0800
@@ -91,6 +91,7 @@
 use File::Path;
 use File::Find;
 use Getopt::Std;
+use Data::Dumper;
 
 ###########################################################################
 # Initialize
@@ -579,6 +580,7 @@
 #
 # Now backup each of the shares
 #
+my $debugStr;
 for my $shareName ( @$ShareNames ) {
     local(*RH, *WH);
 
@@ -846,6 +848,7 @@
     # Merge the xfer status (need to accumulate counts)
     #
     my $newStat = $xfer->getStats;
+    $debugStr = "newStat = " . Dumper($newStat); $XferLOG->write(\$debugStr);
     if ( $newStat->{fileCnt} == 0 ) {
        $noFilesErr ||= "No files dumped for share $shareName";
     }
@@ -862,6 +865,7 @@
             next;
         }
     }
+    $debugStr = "merged = " . Dumper(\%stat); $XferLOG->write(\$debugStr);
 
     if ( $NeedPostCmd ) {
         UserCommandRun("DumpPostShareCmd", $shareName);
@@ -873,6 +877,7 @@
     }
 
     $stat{xferOK} = 0 if ( $stat{hostError} || $stat{hostAbort} );
+    $debugStr = "A xferOK = $stat{xferOK}, hostError = $stat{hostError}, 
hostAbort = $stat{hostAbort}\n"; $XferLOG->write(\$debugStr);
     if ( !$stat{xferOK} ) {
         #
         # kill off the transfer program, first nicely then forcefully
@@ -897,6 +902,7 @@
     }
 }
 
+$debugStr = "B xferOK = $stat{xferOK}, hostError = $stat{hostError}, hostAbort 
= $stat{hostAbort}\n"; $XferLOG->write(\$debugStr);
 #
 # If this is a full, and any share had zero files then consider the dump bad
 #
@@ -906,6 +912,7 @@
     $stat{xferOK} = 0;
 }
 
+$debugStr = "C xferOK = $stat{xferOK}, hostError = $stat{hostError}, hostAbort 
= $stat{hostAbort}, Abort = $Abort\n"; $XferLOG->write(\$debugStr);
 $stat{xferOK} = 0 if ( $Abort );
 
 #
@@ -915,6 +922,7 @@
     $stat{hostError} = $errMsg;
     $stat{xferOK} = 0;
 }
+$debugStr = "D xferOK = $stat{xferOK}, hostError = $stat{hostError}, hostAbort 
= $stat{hostAbort}\n"; $XferLOG->write(\$debugStr);
 
 UserCommandRun("DumpPostUserCmd") if ( $NeedPostCmd );
 if ( $? && $Conf{UserCmdCheckStatus} ) {
@@ -924,6 +932,7 @@
     $stat{xferOK} = 0;
 }
 close($newFilesFH) if ( defined($newFilesFH) );
+$debugStr = "E xferOK = $stat{xferOK}, hostError = $stat{hostError}, hostAbort 
= $stat{hostAbort}\n"; $XferLOG->write(\$debugStr);
 
 my $endTime = time();
 
@@ -937,6 +946,7 @@
                   "Got fatal error during xfer ($stat{hostError})\n");
        $XferLOG->write(\"Got fatal error during xfer ($stat{hostError})\n");
     }
+    $debugStr = "F xferOK = $stat{xferOK}, hostError = $stat{hostError}, 
hostAbort = $stat{hostAbort}\n"; $XferLOG->write(\$debugStr);
     if ( !$Abort ) {
        #
        # wait a short while and see if the system is still alive

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to