autostart: Use ArchiveSplit from BackupPC's conf

This is probably a bug; I ought to report it if it isn't
already fixed.
This commit is contained in:
Ryan Tucker 2011-10-02 11:48:50 -04:00
parent 91296f1775
commit a7c9100b7a
2 changed files with 4 additions and 2 deletions

View file

@ -100,7 +100,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} * 1000000,
host => $ArchiveHost,
HostList => \@HostList,
BackupList => \@BackupList,

View file

@ -182,7 +182,9 @@ def start_archive(hosts):
except KeyError:
username = 'nobody'
cmd = ['/usr/share/backuppc/bin/BackupPC_archiveStart', 'archives3',
scriptdir = os.path.dirname(sys.argv[0])
cmd = [os.path.join(scriptdir, 'BackupPC_archiveStart'), 'archives3',
username]
cmd.extend(hosts)