fix tars without files
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@280
8392b6e1-25fa-0310-8288-
cc32f8e212ea
print ", $items items";
- if ($tar_size == 0) {
+ if ($tar_size == 0 && $items == 0) {
print ", EMPTY tar\n";
my $backup_id = get_backup_id($host, $share, $num);
where id = ?
});
$sth_inc_deleted->execute($backup_id);
+
+ $dbh->commit;
+
+ return 1;
}
+ # fix tar_size for tars without any files
+ $tar_size ||= 512 * $items;
+
#
# check if md5 exists, and if not, create one