2 # /etc/BackupPC/pc/_search_archive.pl
5 # Set this client's XferMethod to archive to make it an archive host:
6 $Conf{XferMethod} = 'archive';
8 # The path on the local file system where archives will be written:
9 $Conf{ArchiveDest} = '/data/BackupPC/_search_archive';
11 # the type and level of compression used on the archive:
12 $Conf{ArchiveComp} = 'gzip';
13 $Conf{CompressLevel} = 9;
15 # dump only incremental changes in tars not whole content - ASA extension
16 # XXX this option must be global in /etc/BackupPC/config.pl
17 $Conf{TarCreateIncremental} = 1;
19 # archive media size (in bytes) 4.2Gb for DVD
20 $Conf{ArchiveMediaSize} = 4200 * 1024 * 1024; # DVD
21 #$Conf{ArchiveMediaSize} = 630 * 1024 * 1024; # CD
22 #$Conf{ArchiveMediaSize} = 1440 * 1024; # floppy
23 #$Conf{ArchiveMediaSize} = 42 * 1024 * 1024; # FIXME
26 # A size in megabytes to split the archive in to parts at.
27 # This is useful where the file size of the archive might exceed the
28 # capacity of the removable media. For example specify 700 if you are using CDs.
29 $Conf{ArchiveSplit} = 650;
30 #$Conf{ArchiveSplit} = 100; # FIXME small testing chunks
33 # The amount of parity data to create for the archive using the par2 utility.
34 # In some cases, corrupted archives can be recovered from parity data.
35 $Conf{ArchivePar} = 5;
36 $Conf{ParPath} = '/srv/par2cmdline-0.4-tbb-20100203-lin64/par2';
37 # http://chuchusoft.com/par2_tbb/download.html
38 # par2cmdline 0.4 with Intel Threading Building Blocks 2.2
40 # use parallel gzip (speedup on multi-code machines)
41 $Conf{GzipPath} = '/usr/bin/pigz';
44 $Conf{Bzip2Path} = '/usr/bin/pbzip2';
46 # The full command to run to create archives:
47 $Conf{ArchiveClientCmd} = '$Installdir/bin/BackupPC_archiveHost'
48 . ' $tarCreatePath $splitpath $parpath $host $backupnumber'
49 . ' $compression $compext $splitsize $archiveloc $parfile *';
51 # host provides serialization, so we can safely update fulltext index
52 $Conf{ArchivePreUserCmd} = '/srv/BackupPC/bin/BackupPC_ASA_SearchUpdate -h$HostList';
54 $Conf{Md5sumPath} = '/usr/bin/md5sum';
56 # after archives are created, pull data back in database - ASA extension
57 $Conf{ArchivePostUserCmd} = '/srv/BackupPC/bin/BackupPC_ASA_PostArchive_Update -h$HostList -n$BackupList --ok=$xferOK';
60 $Conf{XferLogLevel} = 1;