/[BackupPC]/trunk/bin/BackupPC_incPartsUpdate
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bin/BackupPC_incPartsUpdate

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 274 by dpavlin, Tue Dec 13 22:38:09 2005 UTC revision 280 by dpavlin, Wed Dec 14 10:40:10 2005 UTC
# Line 197  sub tar_check($$$$) { Line 197  sub tar_check($$$$) {
197    
198                  print ", $items items";                  print ", $items items";
199    
200                    if ($tar_size == 0 && $items == 0) {
201                            print ", EMPTY tar\n";
202    
203                            my $backup_id = get_backup_id($host, $share, $num);
204    
205                            my $sth_inc_deleted = $dbh->prepare(qq{
206                                    update backups set
207                                            inc_deleted = true
208                                    where id = ?
209                            });
210                            $sth_inc_deleted->execute($backup_id);
211    
212                            $dbh->commit;
213    
214                            return 1;
215                    }
216    
217                    # fix tar_size for tars without any files
218                    $tar_size ||= 512 * $items;
219    
220    
221                  #                  #
222                  # check if md5 exists, and if not, create one                  # check if md5 exists, and if not, create one
223                  #                  #

Legend:
Removed from v.274  
changed lines
  Added in v.280

  ViewVC Help
Powered by ViewVC 1.1.26