'$ipAddrBase', first => '$first', last => '$last', }, ];"; } $DEFAULT .= " \$Conf{BackupPCUser} = 'backuppc'; \$Conf{CgiDir} = '/usr/share/backuppc/cgi-bin'; \$Conf{InstallDir} = '/usr/share/backuppc'; \$Conf{BackupPCUserVerify} = 1; \$Conf{HardLinkMax} = 31999; \$Conf{SmbShareName} = 'C$'; \$Conf{SmbShareUserName} = ''; \$Conf{SmbSharePasswd} = ''; \$Conf{TarShareName} = '/'; \$Conf{FullPeriod} = $FullPeriod; \$Conf{IncrPeriod} = $IncrPeriod; \$Conf{FullKeepCnt} = $FullKeepCnt; \$Conf{FullKeepCntMin} = $FullKeepCntMin; \$Conf{FullAgeMax} = $FullAgeMax; \$Conf{IncrKeepCnt} = $IncrKeepCnt; \$Conf{IncrKeepCntMin} = $IncrKeepCntMin; \$Conf{IncrLevels} = $IncrLevels; \$Conf{IncrAgeMax} = $IncrAgeMax; \$Conf{PartialAgeMax} = 3; \$Conf{IncrFill} = 0; \$Conf{RestoreInfoKeepCnt} = 10; \$Conf{ArchiveInfoKeepCnt} = 10; \$Conf{BackupFilesOnly} = undef; \$Conf{BackupFilesExclude} = undef; \$Conf{BlackoutBadPingLimit} = 3; \$Conf{BlackoutGoodCnt} = 7; \$Conf{BlackoutPeriods} = [ { hourBegin => $hourBegin, hourEnd => $hourEnd, weekDays => $weekDays, }, ]; \$Conf{BackupZeroFilesIsFatal} = 1; ########################################################################### # General per-PC configuration settings # (can be overridden in the per-PC config.pl) ########################################################################### \$Conf{XferLogLevel} = 1; \$Conf{SmbClientPath} = '/usr/bin/smbclient'; \$Conf{SmbClientFullCmd} = '\$smbClientPath \\\\\$host\\\$shareName' . ' \$I_option -U \$userName -E -N -d 1' . ' -c tarmode\\ full -Tc\$X_option - \$fileList'; \$Conf{SmbClientIncrCmd} = '\$smbClientPath \\\\\$host\\\$shareName' . ' \$I_option -U \$userName -E -N -d 1' . ' -c tarmode\\ full -TcN\$X_option \$timeStampFile - \$fileList'; \$Conf{SmbClientRestoreCmd} = '\$smbClientPath \\\\\$host\\\$shareName' . ' \$I_option -U \$userName -E -N -d 1' . ' -c tarmode\\ full -Tx -'; \$Conf{TarClientCmd} = '\$sshPath -q -x -n -l root \$host' . ' /usr/bin/env LC_ALL=C \$tarPath -c -v -f - -C \$shareName+' . ' --totals'; \$Conf{TarFullArgs} = '\$fileList+'; \$Conf{TarIncrArgs} = '--newer=\$incrDate \$fileList+'; \$Conf{TarClientRestoreCmd} = '\$sshPath -q -x -l root \$host' . ' /usr/bin/env LC_ALL=C \$tarPath -x -p --numeric-owner --same-owner' . ' -v -f - -C \$shareName+'; \$Conf{TarClientPath} = '/bin/tar'; \$Conf{RsyncClientPath} = '/usr/bin/rsync'; \$Conf{RsyncClientCmd} = '\$sshPath -q -x -l root \$host \$rsyncPath \$argList+'; \$Conf{RsyncClientRestoreCmd} = '\$sshPath -q -x -l root \$host \$rsyncPath \$argList+'; \$Conf{RsyncdClientPort} = 873; \$Conf{RsyncdUserName} = ''; \$Conf{RsyncdPasswd} = ''; \$Conf{RsyncdAuthRequired} = 1; \$Conf{RsyncCsumCacheVerifyProb} = 0.01; \$Conf{RsyncArgs} = [ '--numeric-ids', '--perms', '--owner', '--group', '--devices', '--links', '--times', '--block-size=2048', '--recursive', ]; \$Conf{RsyncRestoreArgs} = [ '--numeric-ids', '--perms', '--owner', '--group', '--devices', '--links', '--times', '--block-size=2048', '--relative', '--ignore-times', '--recursive', ]; \$Conf{ArchiveDest} = '/tmp'; \$Conf{ArchiveComp} = 'gzip'; \$Conf{ArchivePar} = 0; \$Conf{ArchiveSplit} = 0; \$Conf{ArchiveClientCmd} = '\$Installdir/bin/BackupPC_archiveHost' . ' \$tarCreatePath \$splitpath \$parpath \$host \$backupnumber' . ' \$compression \$compext \$splitsize \$archiveloc \$parfile *'; \$Conf{SshPath} = '/usr/bin/ssh'; \$Conf{NmbLookupPath} = '/usr/bin/nmblookup'; \$Conf{NmbLookupCmd} = '\$nmbLookupPath -A \$host'; \$Conf{NmbLookupFindHostCmd} = '\$nmbLookupPath \$host'; \$Conf{FixedIPNetBiosNameCheck} = 0; \$Conf{PingPath} = '/bin/ping'; \$Conf{PingCmd} = '\$pingPath -c 1 \$host'; \$Conf{ServerInitdPath} = ''; \$Conf{ServerInitdStartCmd} = ''; \$Conf{CompressLevel} = 3; \$Conf{PingMaxMsec} = 20; \$Conf{ClientTimeout} = 7200; \$Conf{MaxOldPerPCLogFiles} = 12; \$Conf{DumpPreUserCmd} = undef; \$Conf{DumpPostUserCmd} = undef; \$Conf{RestorePreUserCmd} = undef; \$Conf{RestorePostUserCmd} = undef; \$Conf{ArchivePreUserCmd} = undef; \$Conf{ArchivePostUserCmd} = undef; \$Conf{ClientNameAlias} = undef; \$Conf{PerlModuleLoad} = undef; ########################################################################### # Email reminders, status and messages # (can be overridden in the per-PC config.pl) ########################################################################### \$Conf{SendmailPath} = '/usr/sbin/sendmail'; \$Conf{EMailNotifyMinDays} = 2.5; \$Conf{EMailFromUserName} = 'backuppc'; \$Conf{EMailAdminUserName} = '$EMailAdminUserName'; \$Conf{EMailNotifyOldBackupDays} = 7.0; \$Conf{EMailNoBackupRecentSubj} = undef; \$Conf{EMailNoBackupRecentMesg} = undef; \$Conf{EMailNotifyOldOutlookDays} = 5.0; \$Conf{EMailOutlookBackupSubj} = undef; \$Conf{EMailOutlookBackupMesg} = undef; ########################################################################### # CGI user interface configuration settings # (can be overridden in the per-PC config.pl) ########################################################################### \$Conf{CgiAdminUserGroup} = 'backuppc'; \$Conf{CgiAdminUsers} = 'backuppc'; \$Conf{CgiURL} = 'http://'.\$Conf{ServerHost}.'/backuppc/index.cgi'; \$Conf{Language} = 'fr'; \$Conf{CgiUserHomePageCheck} = ''; \$Conf{CgiUserUrlCreate} = 'mailto:%s'; \$Conf{CgiDateFormatMMDD} = 0; \$Conf{CgiNavBarAdminAllHosts} = 1; \$Conf{CgiSearchBoxEnable} = 1; \$Conf{CgiNavBarLinks} = [ { link => \"?action=view&type=docs\", lname => \"Documentation\", }, { link => \"http://backuppc.sourceforge.net/faq\", name => \"FAQ\", }, { link => \"http://backuppc.sourceforge.net\", name => \"SourceForge\", }, ]; \$Conf{CgiStatusHilightColor} = { Reason_backup_failed => '#ffcccc', Reason_backup_done => '#ccffcc', Reason_no_ping => '#ffff99', Reason_backup_canceled_by_user => '#ff9900', Status_backup_in_progress => '#66cc99', }; \$Conf{CgiHeaders} = ''; \$Conf{CgiImageDir} = '/usr/share/backuppc/image'; \$Conf{CgiExt2ContentType} = { }; \$Conf{CgiImageDirURL} = '/backuppc/image'; \$Conf{CgiCSSFile} = 'BackupPC_stnd.css'; "; fwrite($fp,$DEFAULT); fclose($fp); // test si on peut ecrire dans le repertoire parent if ($bpcmedia != "1") { if (is_link("/var/lib/backuppc")) { $drive=readlink('/var/lib/backuppc'); } else { $drive="/var/lib/backuppc"; } // $droits_ok=TestEcrire($drive); // if ($droits_ok!="1") { // echo "