Joe writes: > I have BackupPC 3.0 configured and working but I sometimes get errors > which I think are due to the DumpPreUserCmd overlapping with tar. > > I have: > $Conf{TarShareName} = [ > '/home', > '/srv/www', > '/usr/local' > ]; > $Conf{DumpPreUserCmd} = '/home/cpseg/scripts/precopy'; > > > precopy gets a list of postgresql databases and dumps them all to a > specific directory so that they can get backedup > > The error I get sometimes, not always is: > > Executing DumpPreUserCmd: /home/cpseg/scripts/precopy > Running: /usr/bin/sudo /bin/tar -c -v -f - -C /home --totals > --newer=2007-07-18 00:00:00 --exclude=./servidor/.beagle > --exclude=./servidor/winxp --exclude=./cpseg/COPIAS . > incr backup started back to 2007-07-18 00:00:00 (backup #64) for directory > /home > Xfer PIDs are now 26602,26601 > [ saltadas 255 lineas ] > /bin/tar: ./csadmin/canosoft/bbdd/atursa.sql: File shrank by 141771560 bytes; > padding with zeros > [ saltadas 19 lineas ] > tarExtract: Done: 0 errors, 1 filesExist, 0 sizeExist, 0 sizeExistComp, 3 > filesTotal, 163014044 sizeTotal > [ saltadas 1 lineas ] > /bin/tar: Error exit delayed from previous errors > Tar exited with error 512 () status > > I understand that the precopy script was dumping the atursa.sql database > while tar was copying. Is this correct?
Shouldn't be - the $Conf{DumpPreUserCmd} should run to completion before the backup is done (unless you background it inside the precopy script). But tar's message does show that the file changed while it was being read. Is some other process writing to that file? Craig ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/