use ArchiveSplit in Mb everywhere
[BackupPC.git] / bin / BackupPC_ASA_ArchiveStart
index 14209c4..69d124c 100755 (executable)
@@ -111,7 +111,8 @@ foreach ( @HostFilter ) {
     $sth->execute( $host );
     if ( $sth->rows == 0 ) {
        warn "no backups to archive on $host\n";
-       next;
+       push @HostList, $host;
+       push @BackupList, 0; # fake, but will make full-text update
     }
 
     while ( my $row = $sth->fetchrow_hashref ) {
@@ -121,6 +122,8 @@ foreach ( @HostFilter ) {
     }
 }
 
+$dbh->disconnect;
+
 my $ReqFileName;
 for ( my $i = 0 ; ; $i++ ) {
     $ReqFileName="archiveReq.$$.$i";
@@ -135,7 +138,7 @@ my %ArchiveReq = (
     compext     => $bpc->{Conf}{ArchiveComp} eq 'none' ? ''
                     : ($bpc->{Conf}{ArchiveComp} eq 'gzip' ? '.gz' : '.bz2'),
     parfile     => $bpc->{Conf}{ArchivePar},
-    splitsize   => '0000000',
+    splitsize   => $bpc->{Conf}{ArchiveSplit} . '000000', # mb -> bytes
     host        => $ArchiveHost,
     HostList    => \@HostList,
     BackupList  => \@BackupList,