Tony Del Porto writes: > On Aug 4, 2005, at 7:32 PM, Craig Barratt wrote: > > > Tony Del Porto writes: > > > >> I'm testing BackupPC with a couple of machines and full backups don't > >> complete. The test machines are a Redhad 7.2 machine and an OS 10.3.9 > >> machine. Both are using tar (or xtar) and ssh. The errors in the Xfer > >> log are basically the same: > >> > >> Redhat 7.2 > >> ... > >> pool l 777 0/0 1 mount > >> create 600 0/0 574 ntp.keys.3204915872 > >> pool 600 0/0 574 ntp.keys.3204916062 > >> create 600 0/0 574 ntp.keys.3204916081 > >> pool 600 0/0 29 .bash_history > >> create d 755 0/0 0 initrd > >> tarExtract: Done: 0 errors, 224692 filesExist, 8825497672 sizeExist, > >> 3116053660 sizeExistComp, 252541 filesTotal, 9321259784 sizeTotal > >> Got fatal error during xfer (./initrd/) > >> Backup aborted (./initrd/) > >> > > OS 10.3.9 + xtar > >> ... > >> pool 644 501/20 25141 > >> Users/tony/Sites/tony/socal/yurt_views.jpg > >> pool 644 501/20 1035594 Users/tony/Sites/tony/socal.zip > >> pool 644 501/20 3265 > >> Users/tony/Sites/tony/thelist.html > >> pool 644 501/20 815874 Users/tony/tonybackup.tgz > >> tarExtract: Done: 0 errors, 21624 filesExist, 2952991765 sizeExist, > >> 2374350093 sizeExistComp, 21666 filesTotal, 2963158042 sizeTotal > >> Got fatal error during xfer (./Users/tony/tonybackup.tgz) > >> Backup aborted (./Users/tony/tonybackup.tgz) > > > > Is there a real error shown in the log file? If not, it could > > just be a problem with the exit status of tar on the mac. > > Perhaps it's a minor error (eg: can't read a file) that > > causes an exit status that makes BackupPC think the backup > > failed. > > > > You could run this command manually (substituting the variables): > > > > $sshPath -q -x -n -l root $host $tarPath -c -v -f - -C / > > > /dev/null > > > > and then print the exit status (echo $status in tcsh). > > > > Craig > > Craig, > > Thanks a lot for your response. I've been otherwise occupied and > haven't had time to explore the above until recently. > > I limited the backup to a very small set of files for testing and ran > the ssh'd tar command both manually per your suggestion and via > backuppc: > > > [backuppc]$ sudo -u backuppc /usr/bin/ssh -q -x -n -l root lucca > /usr/bin/xtar -c -v -f - -C / --exclude=.Trash --exclude=./Trash > --exclude=./automount --exclude=./Network > --exclude=./private/var/automount --exclude=./private/var/run > --exclude=./private/var/vm --exclude=./private/var/tmp > --exclude=./private/tmp --exclude=Caches --exclude=CachedMessages > ./Users/tony/Sites/tony > /dev/null > ./Users/tony/Sites/tony/ > ./Users/tony/Sites/tony/.DS_Store > ./Users/tony/Sites/tony/.rsrc/.DS_Store > ./Users/tony/Sites/tony/bookmark.htm > ./Users/tony/Sites/tony/condo/ > ./Users/tony/Sites/tony/condo/.DS_Store > ....<snipped> > ./Users/tony/Sites/tony/socal/yurt_skylights.jpg > ./Users/tony/Sites/tony/socal/yurt_view.jpg > ./Users/tony/Sites/tony/socal/yurt_views.jpg > ./Users/tony/Sites/tony/socal.zip > ./Users/tony/Sites/tony/thelist.html > [backuppc]$ echo $? > 0 > > Contents of file /usr/local/backuppc/data/pc/lucca/XferLOG.0.z, > modified 2005-08-18 16:00:20 > > Running: /usr/bin/ssh -q -x -n -l root lucca /usr/bin/xtar -c -v -f - > -C / --exclude=.Trash --exclude=./Trash --exclude=./automount > --exclude=./Network --exclude=./private/var/automount > --exclude=./private/var/run --exclude=./private/var/vm > --exclude=./private/var/tmp --exclude=./private/tmp --exclude=Caches > --exclude=CachedMessages ./Users/tony/Sites/tony > Xfer PIDs are now 52678,52677 > create d 755 501/20 0 Users/tony/Sites/tony > pool 755 501/20 12292 Users/tony/Sites/tony/.DS_Store > pool 755 501/20 64 > Users/tony/Sites/tony/.rsrc/.DS_Store > pool 644 501/20 37396 Users/tony/Sites/tony/bookmark.htm > create d 755 501/20 0 Users/tony/Sites/tony/condo > pool 644 501/20 12292 > Users/tony/Sites/tony/condo/.DS_Store > ...<snipped> > pool 644 501/20 117042 > Users/tony/Sites/tony/socal/yurt_view.jpg > pool 644 501/20 25141 > Users/tony/Sites/tony/socal/yurt_views.jpg > pool 644 501/20 1035594 Users/tony/Sites/tony/socal.zip > pool 644 501/20 3265 Users/tony/Sites/tony/thelist.html > tarExtract: Done: 0 errors, 289 filesExist, 21440784 sizeExist, > 20746069 sizeExistComp, 289 filesTotal, 21440784 sizeTotal > Got fatal error during xfer (./Users/tony/Sites/tony/thelist.html) > Backup aborted (./Users/tony/Sites/tony/thelist.html) > > LOG: > 2005-08-18 16:00:01 full backup started for directory / > 2005-08-18 16:00:15 Got fatal error during xfer > (./Users/tony/Sites/tony/thelist.html) > 2005-08-18 16:00:20 Backup aborted > (./Users/tony/Sites/tony/thelist.html) > 2005-08-18 16:00:20 Saved partial dump 0 > > So something is failing, but it doesn't appear to be tar. I can browse > the backup using the web interface and everything appears to be there > as the Xfer log indicates. Is there anything else that backuppc updates > upon a successful backup? A file with bad permissions perhaps? Any > other ideas?
The problem is that there is no --totals argument to tar, and BackupPC expects to see the output from the --totals at the very end of the archive. Does xtar support --totals? Craig ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ BackupPC-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
