Hi Craig, No, there is no other process writing these files. I launch the precopy script at prompt and it doesn't return control until the whole process is finished, so no backgrounding there. The only idea I can think of is:
- precopy is launched for /home and finishes - tar backup starts for /home - precopy is launched for /srv/www in parallel with tar backup of /home That would explain that it doesn't happen always as it would depend on the speed of both processes overlapping. Is this scenario possible? Thanks, Joe TSolucio BTW: Congratulations, I think you are doing an incredible job with the product and your work on this list. > 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 > El mar, 24-07-2007 a las 18:56 -0700, Craig Barratt escribió: > 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? > ------------------------------------------------------------------------- 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/