Guest User

Untitled

a guest
Jan 11th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 11.67 KB | None | 0 0
  1. $Conf{ServerHost} = 'b01';
  2.  
  3. $Conf{ServerPort} = -1;
  4.  
  5. $Conf{ServerMesgSecret} = '';
  6.  
  7. $Conf{MyPath} = '/bin';
  8.  
  9. $Conf{UmaskMode} = 027;
  10.  
  11. $Conf{WakeupSchedule} = [12, 23, 24, 1, 2, 3, 4, 5, 6, 7];
  12.  
  13. $Conf{PoolV3Enabled} = 0;
  14.  
  15. $Conf{MaxBackups} = 4;
  16.  
  17. $Conf{MaxUserBackups} = 4;
  18.  
  19. $Conf{MaxPendingCmds} = 15;
  20.  
  21. $Conf{CmdQueueNice} = 10;
  22.  
  23. $Conf{MaxBackupPCNightlyJobs} = 2;
  24.  
  25. $Conf{BackupPCNightlyPeriod} = 1;
  26.  
  27. $Conf{PoolSizeNightlyUpdatePeriod} = 16;
  28.  
  29. $Conf{MaxOldLogFiles} = 14;
  30.  
  31. $Conf{DfPath} = '/bin/df';
  32.  
  33. $Conf{DfCmd} = '$dfPath $topDir';
  34.  
  35. $Conf{SplitPath} = '/usr/bin/split';
  36. $Conf{ParPath}   = '';
  37. $Conf{CatPath}   = '/bin/cat';
  38. $Conf{GzipPath}  = '/bin/gzip';
  39. $Conf{Bzip2Path} = '/bin/bzip2';
  40.  
  41. $Conf{DfMaxUsagePct} = 99;
  42.  
  43. $Conf{DHCPAddressRanges} = [];
  44.  
  45. $Conf{BackupPCUser} = 'backuppc';
  46.  
  47. $Conf{TopDir}      = '/var/backups/backuppc';
  48. $Conf{ConfDir}     = '/etc/BackupPC';
  49. $Conf{LogDir}      = '/var/log/BackupPC';
  50. $Conf{RunDir}      = '/var/run/BackupPC';
  51. $Conf{InstallDir}  = '/usr/local/BackupPC';
  52. $Conf{CgiDir}      = '/usr/lib/cgi-bin';
  53.  
  54. $Conf{BackupPCUserVerify} = 1;
  55.  
  56. $Conf{HardLinkMax} = 31999;
  57.  
  58. $Conf{PerlModuleLoad}     = undef;
  59.  
  60. $Conf{ServerInitdPath} = '';
  61. $Conf{ServerInitdStartCmd} = '';
  62.  
  63. $Conf{FullPeriod} = 27.97;
  64.  
  65. $Conf{IncrPeriod} = 0.97;
  66.  
  67. $Conf{FillCycle} = 0;
  68.  
  69. $Conf{FullKeepCnt} = 1;
  70.  
  71. $Conf{FullKeepCntMin} = 1;
  72. $Conf{FullAgeMax}     = 60;
  73.  
  74. $Conf{IncrKeepCnt} = 31;
  75.  
  76. $Conf{IncrKeepCntMin} = 7;
  77. $Conf{IncrAgeMax}     = 35;
  78.  
  79. $Conf{BackupsDisable} = 0;
  80.  
  81. $Conf{RestoreInfoKeepCnt} = 10;
  82.  
  83. $Conf{ArchiveInfoKeepCnt} = 10;
  84.  
  85. $Conf{BackupFilesOnly} = undef;
  86.  
  87. $Conf{BackupFilesExclude} = ['/proc', '/sys', 'tmp/', '/var/cache', '/var/log/lastlog', '/var/log/rsync*', '/var/lib/mlocate', '/var/spool', '/media', '/mnt'];
  88.  
  89. $Conf{BlackoutBadPingLimit} = 3;
  90. $Conf{BlackoutGoodCnt}      = 7;
  91.  
  92. $Conf{BlackoutPeriods} = [
  93. ];
  94.  
  95. $Conf{BackupZeroFilesIsFatal} = 1;
  96.  
  97. $Conf{XferMethod} = 'rsyncd';
  98.  
  99. $Conf{XferLogLevel} = 1;
  100.  
  101. $Conf{ClientCharset} = '';
  102.  
  103. $Conf{ClientCharsetLegacy} = 'iso-8859-1';
  104.  
  105. $Conf{SmbShareName} = 'C$';
  106.  
  107. $Conf{SmbShareUserName} = '';
  108.  
  109. $Conf{SmbSharePasswd} = '';
  110.  
  111. $Conf{SmbClientPath} = '';
  112.  
  113. $Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName'
  114.         . ' $I_option -U $userName -E -d 1'
  115.             . ' -c tarmode\\ full -Tc$X_option - $fileList';
  116.  
  117. $Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName'
  118.         . ' $I_option -U $userName -E -d 1'
  119.         . ' -c tarmode\\ full -TcN$X_option $timeStampFile - $fileList';
  120.  
  121. $Conf{SmbClientRestoreCmd} = '$smbClientPath \\\\$host\\$shareName'
  122.             . ' $I_option -U $userName -E -d 1'
  123.             . ' -c tarmode\\ full -Tx -';
  124.  
  125. $Conf{TarShareName} = '/';
  126.  
  127. $Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host'
  128.                     . ' env LC_ALL=C $tarPath -c -v -f - -C $shareName+'
  129.                     . ' --totals';
  130.  
  131. $Conf{TarFullArgs} = '$fileList+';
  132.  
  133. $Conf{TarIncrArgs} = '--newer=$incrDate+ $fileList+';
  134.  
  135. $Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host'
  136.            . ' env LC_ALL=C $tarPath -x -p --numeric-owner --same-owner'
  137.            . ' -v -f - -C $shareName+';
  138.  
  139. $Conf{TarClientPath} = '/bin/tar';
  140.  
  141. $Conf{RsyncClientPath} = '';
  142.  
  143. $Conf{RsyncBackupPCPath} = "/usr/local/bin/rsync_bpc";
  144.  
  145. $Conf{RsyncSshArgs} = [
  146.         '-e', '$sshPath -l root',
  147. ];
  148.  
  149. $Conf{RsyncShareName} = 'full';
  150.  
  151. $Conf{RsyncdClientPort} = 873;
  152.  
  153. $Conf{RsyncdUserName} = 'x';
  154.  
  155. $Conf{RsyncdPasswd} = '';
  156.  
  157. $Conf{RsyncFullArgsExtra} = [
  158.             '--checksum',
  159. ];
  160.  
  161. $Conf{RsyncArgs} = [
  162.             '--super',
  163.             '--recursive',
  164.             '--protect-args',
  165.             '--numeric-ids',
  166.             '--perms',
  167.             '--owner',
  168.             '--group',
  169.             '-D',
  170.             '--times',
  171.             '--links',
  172.             '--hard-links',
  173.             '--delete',
  174.             '--partial',
  175.             '--log-format=log: %o %i %B %8U,%8G %9l %f%L',
  176.             '--stats',
  177.         #
  178.         # Add additional arguments here, for example --acls or --xattrs
  179.             # if all the clients support them.
  180.         #
  181.             #'--acls',
  182.             #'--xattrs',
  183. ];
  184.  
  185. $Conf{RsyncArgsExtra} = [];
  186.  
  187. $Conf{RsyncRestoreArgs} = [
  188.             '--recursive',
  189.             '--super',
  190.             '--protect-args',
  191.             '--numeric-ids',
  192.             '--perms',
  193.             '--owner',
  194.             '--group',
  195.             '-D',
  196.             '--times',
  197.             '--links',
  198.             '--hard-links',
  199.             '--delete',
  200.             '--partial',
  201.             '--log-format=log: %o %i %B %8U,%8G %9l %f%L',
  202.             '--stats',
  203.         #
  204.         # Add additional arguments here
  205.         #
  206.             #'--acls',
  207.             #'--xattrs',
  208. ];
  209.  
  210. $Conf{FtpShareName} = '';
  211.  
  212. $Conf{FtpUserName} = '';
  213.  
  214. $Conf{FtpPasswd} = '';
  215.  
  216. $Conf{FtpPassive} = 1;
  217.  
  218. $Conf{FtpBlockSize} = 10240;
  219.  
  220. $Conf{FtpPort} = 21;
  221.  
  222. $Conf{FtpTimeout} = 120;
  223.  
  224. $Conf{FtpFollowSymlinks} = 0;
  225.  
  226. $Conf{ArchiveDest} = '/tmp';
  227.  
  228. $Conf{ArchiveComp} = 'gzip';
  229.  
  230. $Conf{ArchivePar} = 0;
  231.  
  232. $Conf{ArchiveSplit} = 0;
  233.  
  234. $Conf{ArchiveClientCmd} = '$Installdir/bin/BackupPC_archiveHost'
  235.     . ' $tarCreatePath $splitpath $parpath $host $backupnumber'
  236.     . ' $compression $compext $splitsize $archiveloc $parfile *';
  237.  
  238. $Conf{SshPath} = '/usr/bin/ssh';
  239.  
  240. $Conf{NmbLookupPath} = '';
  241.  
  242. $Conf{NmbLookupCmd} = '$nmbLookupPath -A $host';
  243.  
  244. $Conf{NmbLookupFindHostCmd} = '$nmbLookupPath $host';
  245.  
  246. $Conf{FixedIPNetBiosNameCheck} = 0;
  247.  
  248. $Conf{PingPath} = '/bin/ping';
  249.  
  250. $Conf{PingCmd} = '$pingPath -c 1 -w 3 $host';
  251.  
  252. $Conf{PingMaxMsec} = 20;
  253.  
  254. $Conf{CompressLevel} = 3;
  255.  
  256. $Conf{ClientTimeout} = 72000;
  257.  
  258. $Conf{MaxOldPerPCLogFiles} = 12;
  259.  
  260. $Conf{DumpPreUserCmd}     = undef;
  261. $Conf{DumpPostUserCmd}    = undef;
  262. $Conf{DumpPreShareCmd}    = undef;
  263. $Conf{DumpPostShareCmd}   = undef;
  264. $Conf{RestorePreUserCmd}  = undef;
  265. $Conf{RestorePostUserCmd} = undef;
  266. $Conf{ArchivePreUserCmd}  = undef;
  267. $Conf{ArchivePostUserCmd} = undef;
  268.  
  269. $Conf{UserCmdCheckStatus} = 0;
  270.  
  271. $Conf{ClientNameAlias} = undef;
  272.  
  273. $Conf{SendmailPath} = '/usr/sbin/sendmail';
  274.  
  275. $Conf{EMailNotifyMinDays} = 2.5;
  276.  
  277. $Conf{EMailFromUserName} = 'backuppc';
  278.  
  279. $Conf{EMailAdminUserName} = 'backuppc';
  280.  
  281. $Conf{EMailUserDestDomain} = '';
  282.  
  283. $Conf{EMailNoBackupEverSubj} = undef;
  284. $Conf{EMailNoBackupEverMesg} = undef;
  285.  
  286. $Conf{EMailNotifyOldBackupDays} = 7.0;
  287.  
  288. $Conf{EMailNoBackupRecentSubj} = undef;
  289. $Conf{EMailNoBackupRecentMesg} = undef;
  290.  
  291. $Conf{EMailNotifyOldOutlookDays} = 5.0;
  292.  
  293. $Conf{EMailOutlookBackupSubj} = undef;
  294. $Conf{EMailOutlookBackupMesg} = undef;
  295.  
  296. $Conf{EMailHeaders} = <<EOF;
  297. MIME-Version: 1.0
  298. Content-Type: text/plain; charset="utf-8"
  299. EOF
  300.  
  301. $Conf{CgiAdminUserGroup} = '';
  302. $Conf{CgiAdminUsers}     = '';
  303.  
  304. $Conf{SCGIServerPort} = -1;
  305.  
  306. $Conf{CgiURL} = 'http://b01/cgi-bin/BackupPC_Admin';
  307.  
  308. $Conf{RrdToolPath} = '';
  309.  
  310. $Conf{Language} = 'en';
  311.  
  312. $Conf{CgiUserHomePageCheck} = '';
  313. $Conf{CgiUserUrlCreate}     = 'mailto:%s';
  314.  
  315. $Conf{CgiDateFormatMMDD} = 1;
  316.  
  317. $Conf{CgiNavBarAdminAllHosts} = 1;
  318.  
  319. $Conf{CgiSearchBoxEnable} = 1;
  320.  
  321. $Conf{CgiNavBarLinks} = [
  322.     {
  323.         link  => "?action=view&type=docs",
  324.         lname => "Documentation",    # actually displays $Lang->{Documentation}
  325.     },
  326.     {
  327.         link  => "http://backuppc.wiki.sourceforge.net",
  328.         name  => "Wiki",              # displays literal "Wiki"
  329.     },
  330.     {
  331.         link  => "http://backuppc.sourceforge.net",
  332.         name  => "SourceForge",      # displays literal "SourceForge"
  333.     },
  334. ];
  335.  
  336. $Conf{CgiStatusHilightColor} = {
  337.     Reason_backup_failed           => '#ffcccc',
  338.     Reason_backup_done             => '#ccffcc',
  339.     Reason_no_ping                 => '#ffff99',
  340.     Reason_backup_canceled_by_user => '#ff9900',
  341.     Status_backup_in_progress      => '#66cc99',
  342.     Disabled_OnlyManualBackups     => '#d1d1d1',  
  343.     Disabled_AllBackupsDisabled    => '#d1d1d1',          
  344. };
  345.  
  346. $Conf{CgiHeaders} = '<meta http-equiv="pragma" content="no-cache">';
  347.  
  348. $Conf{CgiImageDir} = '/var/www/images';
  349.  
  350. $Conf{CgiExt2ContentType} = { };
  351.  
  352. $Conf{CgiImageDirURL} = '/images';
  353.  
  354. $Conf{CgiCSSFile} = 'BackupPC_stnd.css';
  355.  
  356. $Conf{CgiUserConfigEditEnable} = 1;
  357.  
  358. $Conf{CgiUserConfigEdit} = {
  359.         FullPeriod                => 1,
  360.         IncrPeriod                => 1,
  361.         FillCycle                 => 1,
  362.         FullKeepCnt               => 1,
  363.         FullKeepCntMin            => 1,
  364.         FullAgeMax                => 1,
  365.         IncrKeepCnt               => 1,
  366.         IncrKeepCntMin            => 1,
  367.         IncrAgeMax                => 1,
  368.         RestoreInfoKeepCnt        => 1,
  369.         ArchiveInfoKeepCnt        => 1,
  370.         BackupFilesOnly           => 1,
  371.         BackupFilesExclude        => 1,
  372.         BackupsDisable            => 1,
  373.         BlackoutBadPingLimit      => 1,
  374.         BlackoutGoodCnt           => 1,
  375.         BlackoutPeriods           => 1,
  376.         BackupZeroFilesIsFatal    => 1,
  377.         ClientCharset             => 1,
  378.         ClientCharsetLegacy       => 1,
  379.         XferMethod                => 1,
  380.         XferLogLevel              => 1,
  381.         SmbShareName              => 1,
  382.         SmbShareUserName          => 1,
  383.         SmbSharePasswd            => 1,
  384.         SmbClientFullCmd          => 0,
  385.         SmbClientIncrCmd          => 0,
  386.         SmbClientRestoreCmd       => 0,
  387.         TarShareName              => 1,
  388.         TarFullArgs               => 1,
  389.         TarIncrArgs               => 1,
  390.         TarClientCmd              => 0,
  391.         TarClientRestoreCmd       => 0,
  392.         TarClientPath             => 0,
  393.         RsyncShareName            => 1,
  394.         RsyncdClientPort          => 1,
  395.         RsyncdPasswd              => 1,
  396.         RsyncdUserName            => 1,
  397.         RsyncdAuthRequired        => 1,
  398.         RsyncArgs                 => 1,
  399.         RsyncArgsExtra            => 1,
  400.         RsyncFullArgsExtra        => 1,
  401.         RsyncSshArgs              => 1,
  402.         RsyncRestoreArgs          => 1,
  403.         RsyncClientPath           => 0,
  404.         FtpShareName              => 1,
  405.         FtpUserName               => 1,
  406.         FtpPasswd                 => 1,
  407.         FtpBlockSize              => 1,
  408.         FtpPort                   => 1,
  409.         FtpTimeout                => 1,
  410.         FtpFollowSymlinks         => 1,
  411.         FtpRestoreEnabled         => 1,
  412.         ArchiveDest               => 1,
  413.         ArchiveComp               => 1,
  414.         ArchivePar                => 1,
  415.         ArchiveSplit              => 1,
  416.         ArchiveClientCmd          => 0,
  417.         FixedIPNetBiosNameCheck   => 1,
  418.         NmbLookupCmd              => 0,
  419.         NmbLookupFindHostCmd      => 0,
  420.         PingMaxMsec               => 1,
  421.         PingCmd                   => 0,
  422.         ClientTimeout             => 1,
  423.         MaxOldPerPCLogFiles       => 1,
  424.         CompressLevel             => 1,
  425.         ClientNameAlias           => 1,
  426.         DumpPreUserCmd            => 0,
  427.         DumpPostUserCmd           => 0,
  428.         RestorePreUserCmd         => 0,
  429.         RestorePostUserCmd        => 0,
  430.         ArchivePreUserCmd         => 0,
  431.         ArchivePostUserCmd        => 0,
  432.         DumpPostShareCmd          => 0,
  433.         DumpPreShareCmd           => 0,
  434.         UserCmdCheckStatus        => 0,
  435.         EMailNotifyMinDays        => 1,
  436.         EMailFromUserName         => 1,
  437.         EMailAdminUserName        => 1,
  438.         EMailUserDestDomain       => 1,
  439.         EMailNoBackupEverSubj     => 1,
  440.         EMailNoBackupEverMesg     => 1,
  441.         EMailNotifyOldBackupDays  => 1,
  442.         EMailNoBackupRecentSubj   => 1,
  443.         EMailNoBackupRecentMesg   => 1,
  444.         EMailNotifyOldOutlookDays => 1,
  445.         EMailOutlookBackupSubj    => 1,
  446.         EMailOutlookBackupMesg    => 1,
  447.         EMailHeaders              => 1,
  448. };
Advertisement
Add Comment
Please, Sign In to add comment