I continue to have problems with BackupPC_tarCreate quitting early. I'm using v4.

It reliably happens when BackupPC starts a backup: any tarCreate of that filesystem immediately quits. The quit is very tidy: the file being dumped is completed, the tar trailer records are written out, exit status is zero, just as if everything is fine. But the resulting tar file is short.

My workaround is to disable backups for the filesystem I want to dump, prior to starting tarCreate. When tarCreate completes, I re-enable backups for that filesystem. This strategy appears to work fine, even if a backup is already running - the backup continues to run, and the tarCreate works fine too. The only issue is the *start* of a backup.

Today, within moments of upgrading to v4.3.1, this workaround has failed. Here's a clip from the log:

2019-07-15 06:00:01 Removing unfilled backup 277
2019-07-15 06:00:01 BackupPC_backupDelete: removing #277
2019-07-15 06:00:01 BackupPC_backupDelete: No prior backup for merge
2019-07-15 23:38:07 BackupPC_refCountUpdate: host slammer-data got 0 errors (took 63483 secs) 2019-07-15 23:38:08 Finished BackupPC_backupDelete, status = 0 (running time: 63487 sec)
2019-07-15 23:38:11 full backup started for directory /data

So the backup starts at 06:00. At around 9am, I edited .../pc/slammer-data.pl to add "$Conf{BackupsDisable} = 2;". (This has no effect - the backup continues to run - that's all fine). I started BackupPC_tarCreate. At 23:38:09 the BackupPC_tarCreate finishes with a success exit status. The tar file it made is perfectly formed but a fraction of the size it should be.

Help!

Happy to debug, though I'm not familiar with BackupPC's internals. Any theories as to where to look would be useful.

Michael.


On 14/12/2018 09:13, Michael Selway wrote:
Hi,  It seems that BackupPC_tarCreate quits prematurely if a backup of the same host begins while tarCreate is running.  It completes the file it's dumping, writes the tar trailer records and exits.  Everything looks fine: the tar image is properly formed and the "-t" status message is printed.  But the resulting tar file is short.

My command line is of the form "BackupPC_tarCreate -t -h $host -n $backupnum -s $share /".

Michael


_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to