From: dpavlin Date: Thu, 26 Jan 2006 17:13:55 +0000 (+0000) Subject: correctly update parts = 0, inc_size = 0, inc_deleted = true for zero-sized increments X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=commitdiff_plain;h=d451a0721361a5a39509f641abd8b5646109d2b2 correctly update parts = 0, inc_size = 0, inc_deleted = true for zero-sized increments git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@297 8392b6e1-25fa-0310-8288-cc32f8e212ea --- diff --git a/bin/BackupPC_tarIncCreate b/bin/BackupPC_tarIncCreate index e27d9c9..0dc5c21 100755 --- a/bin/BackupPC_tarIncCreate +++ b/bin/BackupPC_tarIncCreate @@ -376,6 +376,13 @@ if (seedCache($Host, $ShareName, $Num)) { print STDERR "NOTE: no files found for $Host:$ShareName, increment $Num\n" if ($opts{v}); # remove temporary files if there are no files rmtree($tar_path); + + my $sth = $dbh->prepare(qq{ + update backups set inc_size = 0, parts = 0, inc_deleted = true + where id = ? + }); + $sth->execute($backup_id); + } #