respect ArchiveSplit when creating dumps
[BackupPC.git] / bin / BackupPC_ASA_ArchiveStart
index ddca804..c446363 100755 (executable)
@@ -122,6 +122,8 @@ foreach ( @HostFilter ) {
     }
 }
 
+$dbh->disconnect;
+
 my $ReqFileName;
 for ( my $i = 0 ; ; $i++ ) {
     $ReqFileName="archiveReq.$$.$i";
@@ -136,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},
     host        => $ArchiveHost,
     HostList    => \@HostList,
     BackupList  => \@BackupList,