projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correctly update parts = 0, inc_size = 0, inc_deleted = true for zero-sized increments
[BackupPC.git]
/
bin
/
BackupPC_tarIncCreate
diff --git
a/bin/BackupPC_tarIncCreate
b/bin/BackupPC_tarIncCreate
index
e27d9c9
..
0dc5c21
100755
(executable)
--- 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);
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);
+
}
#
}
#