作者 主題: backuppc問題  (閱讀 4797 次)

0 會員 與 1 訪客 正在閱讀本文。

speoo520999

  • 懷疑的國中生
  • **
  • 文章數: 33
    • 檢視個人資料
backuppc問題
« 於: 2006-06-28 13:00 »
請問backuppc的架構?流程?運作方式?
呃...最主要是想知道備份的時間
呃...公司有一些server
有一台裝backuppc來作備份
是那台備份主機在各個時間向各server說
『hi,你該備份了』
還是各個server向備份主機說
『hi,我要備份了』

http://backuppc.sourceforge.net/faq/BackupPC.html

研究ing

都英文的><"

我的英文程度只有國中吧
得一個字一個字的翻

先說謝謝了

speoo520999

  • 懷疑的國中生
  • **
  • 文章數: 33
    • 檢視個人資料
backuppc問題
« 回覆 #1 於: 2006-06-28 14:38 »
這是config.pl

完全看不懂 = =

$Conf{ServerHost} = 'y';

$Conf{ServerPort} = -1;

$Conf{ServerMesgSecret} = '****';

$Conf{MyPath} = '/bin';

$Conf{UmaskMode} = 027;

$Conf{WakeupSchedule} = [1..23];

$Conf{MaxBackups} = 4;

$Conf{MaxUserBackups} = 4;

$Conf{MaxPendingCmds} = 10;

$Conf{MaxBackupPCNightlyJobs} = 4;

$Conf{BackupPCNightlyPeriod} = 1;

$Conf{MaxOldLogFiles} = 14;

$Conf{DfPath} = '/bin/df';

$Conf{DfCmd} = '$dfPath $topDir';

$Conf{SplitPath} = '/usr/bin/split';
$Conf{ParPath}   = '/usr/bin/par2';
$Conf{CatPath}   = '/bin/cat';
$Conf{GzipPath}  = '/bin/gzip';
$Conf{Bzip2Path} = '/usr/bin/bzip2';

$Conf{DfMaxUsagePct} = 95;

$Conf{TrashCleanSleepSec} = 300;

$Conf{DHCPAddressRanges} = [
   {
      ipAddrBase => '172.18.199',
      first => 20,   
      last  => 200,
   },
];

$Conf{BackupPCUser} = 'backuppc';
$Conf{CgiDir}       = '/var/www/cgi-bin/backuppc';
$Conf{InstallDir}   = '/usr/local/backuppc';

$Conf{BackupPCUserVerify} = 1;

$Conf{HardLinkMax} = 31999;

$Conf{SmbShareName} = 'C$';

$Conf{SmbShareUserName} = '****';

$Conf{SmbSharePasswd} = '****';

$Conf{TarShareName} = '/';

$Conf{FullPeriod} = 6.97;

$Conf{IncrPeriod} = 0.97;

$Conf{FullKeepCnt} = 1;

$Conf{FullKeepCntMin} = 1;
$Conf{FullAgeMax}     = 90;

$Conf{IncrKeepCnt} = 6;

$Conf{IncrKeepCntMin} = 1;
$Conf{IncrAgeMax}     = 30;

$Conf{PartialAgeMax} = 3;

$Conf{IncrFill} = 0;

$Conf{RestoreInfoKeepCnt} = 10;

$Conf{ArchiveInfoKeepCnt} = 10;

$Conf{BackupFilesOnly} = undef;

$Conf{BackupFilesExclude} = ['/proc', '/temp', '/tmp', '/mnt'];

$Conf{BlackoutBadPingLimit} = 3;
$Conf{BlackoutGoodCnt}      = 7;

$Conf{BlackoutPeriods} = [
    {
   hourBegin =>  7.0,
   hourEnd   => 19.5,
   weekDays  => [1, 2, 3, 4, 5],
    },
];

$Conf{BackupZeroFilesIsFatal} = 1;

$Conf{XferMethod} = 'smb';

$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'
                    . ' $tarPath -c -v -f - -C $shareName+'
                    . ' --totals';

$Conf{TarFullArgs} = '$fileList+';

$Conf{TarIncrArgs} = '--newer=$incrDate+ $fileList+';

$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host'
         . ' $tarPath -x -p --numeric-owner --same-owner'
         . ' -v -f - -C $shareName+';

$Conf{TarClientPath} = '/bin/gtar';

$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{RsyncShareName} = '/';

$Conf{RsyncdClientPort} = 873;

$Conf{RsyncdUserName} = '';

$Conf{RsyncdPasswd} = '****';

$Conf{RsyncdAuthRequired} = 1;
 
$Conf{RsyncCsumCacheVerifyProb} = 0.01;

$Conf{RsyncArgs} = [
       #
       # Do not edit these!
       #
            '--numeric-ids',
            '--perms',
            '--owner',
            '--group',
            '--devices',
            '--links',
            '--times',
            '--block-size=2048',
            '--recursive',

];

$Conf{RsyncRestoreArgs} = [
       #
       # Do not edit these!
       #
       '--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 -w 3 $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;

$Conf{SendmailPath} = '/usr/sbin/sendmail';

$Conf{EMailNotifyMinDays} = 2.5;

$Conf{EMailFromUserName} = 'backuppc';

$Conf{EMailAdminUserName} = 'backuppc';

$Conf{EMailUserDestDomain} = '';

$Conf{EMailNoBackupEverSubj} = undef;
$Conf{EMailNoBackupEverMesg} = undef;

$Conf{EMailNotifyOldBackupDays} = 7.0;

$Conf{EMailNoBackupRecentSubj} = undef;
$Conf{EMailNoBackupRecentMesg} = undef;

$Conf{EMailNotifyOldOutlookDays} = 5.0;

$Conf{EMailOutlookBackupSubj} = undef;
$Conf{EMailOutlookBackupMesg} = undef;

$Conf{CgiAdminUserGroup} = '';
$Conf{CgiAdminUsers}     = 'hoder backuppc';

$Conf{CgiURL} = 'http://cache.ktt.com.tw/cgi-bin/backuppc/BackupPC_Admin';

$Conf{Language} = 'en';

$Conf{CgiUserHomePageCheck} = '';
$Conf{CgiUserUrlCreate}     = 'mailto:%s';

$Conf{CgiDateFormatMMDD} = 1;

$Conf{CgiNavBarAdminAllHosts} = 1;

$Conf{CgiSearchBoxEnable} = 1;

$Conf{CgiNavBarLinks} = [
    {
        link  => "?action=view&type=docs",
        lname => "Documentation",    # actually displays $Lang->{Documentation}
    },
    {
        link  => "http://backuppc.sourceforge.net/faq",
        name  => "FAQ",              # displays literal "FAQ"
    },
    {
        link  => "http://backuppc.sourceforge.net",
        name  => "SourceForge",      # displays literal "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} = '<meta http-equiv="pragma" content="no-cache">';

$Conf{CgiImageDir} = '/var/www/html/backuppc';

$Conf{CgiExt2ContentType} = { };

$Conf{CgiImageDirURL} = '/backuppc';

$Conf{CgiCSSFile} = 'BackupPC_stnd.css';

speoo520999

  • 懷疑的國中生
  • **
  • 文章數: 33
    • 檢視個人資料
backuppc問題
« 回覆 #2 於: 2006-06-28 14:56 »
這是config.pl

完全看不懂 = =

$Conf{ServerHost} = 'y';

$Conf{ServerPort} = -1;

$Conf{ServerMesgSecret} = '****';

$Conf{MyPath} = '/bin';

$Conf{UmaskMode} = 027;

$Conf{WakeupSchedule} = [1..23];

$Conf{MaxBackups} = 4;

$Conf{MaxUserBackups} = 4;

$Conf{MaxPendingCmds} = 10;

$Conf{MaxBackupPCNightlyJobs} = 4;

$Conf{BackupPCNightlyPeriod} = 1;

$Conf{MaxOldLogFiles} = 14;

$Conf{DfPath} = '/bin/df';

$Conf{DfCmd} = '$dfPath $topDir';

$Conf{SplitPath} = '/usr/bin/split';
$Conf{ParPath}   = '/usr/bin/par2';
$Conf{CatPath}   = '/bin/cat';
$Conf{GzipPath}  = '/bin/gzip';
$Conf{Bzip2Path} = '/usr/bin/bzip2';

$Conf{DfMaxUsagePct} = 95;

$Conf{TrashCleanSleepSec} = 300;

$Conf{DHCPAddressRanges} = [
   {
      ipAddrBase => '172.18.199',
      first => 20,   
      last  => 200,
   },
];

$Conf{BackupPCUser} = 'backuppc';
$Conf{CgiDir}       = '/var/www/cgi-bin/backuppc';
$Conf{InstallDir}   = '/usr/local/backuppc';

$Conf{BackupPCUserVerify} = 1;

$Conf{HardLinkMax} = 31999;

$Conf{SmbShareName} = 'C$';

$Conf{SmbShareUserName} = '****';

$Conf{SmbSharePasswd} = '****';

$Conf{TarShareName} = '/';

$Conf{FullPeriod} = 6.97;

$Conf{IncrPeriod} = 0.97;

$Conf{FullKeepCnt} = 1;

$Conf{FullKeepCntMin} = 1;
$Conf{FullAgeMax}     = 90;

$Conf{IncrKeepCnt} = 6;

$Conf{IncrKeepCntMin} = 1;
$Conf{IncrAgeMax}     = 30;

$Conf{PartialAgeMax} = 3;

$Conf{IncrFill} = 0;

$Conf{RestoreInfoKeepCnt} = 10;

$Conf{ArchiveInfoKeepCnt} = 10;

$Conf{BackupFilesOnly} = undef;

$Conf{BackupFilesExclude} = ['/proc', '/temp', '/tmp', '/mnt'];

$Conf{BlackoutBadPingLimit} = 3;
$Conf{BlackoutGoodCnt}      = 7;

$Conf{BlackoutPeriods} = [
    {
   hourBegin =>  7.0,
   hourEnd   => 19.5,
   weekDays  => [1, 2, 3, 4, 5],
    },
];

$Conf{BackupZeroFilesIsFatal} = 1;

$Conf{XferMethod} = 'smb';

$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'
                    . ' $tarPath -c -v -f - -C $shareName+'
                    . ' --totals';

$Conf{TarFullArgs} = '$fileList+';

$Conf{TarIncrArgs} = '--newer=$incrDate+ $fileList+';

$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host'
         . ' $tarPath -x -p --numeric-owner --same-owner'
         . ' -v -f - -C $shareName+';

$Conf{TarClientPath} = '/bin/gtar';

$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{RsyncShareName} = '/';

$Conf{RsyncdClientPort} = 873;

$Conf{RsyncdUserName} = '';

$Conf{RsyncdPasswd} = '****';

$Conf{RsyncdAuthRequired} = 1;
 
$Conf{RsyncCsumCacheVerifyProb} = 0.01;

$Conf{RsyncArgs} = [
       #
       # Do not edit these!
       #
            '--numeric-ids',
            '--perms',
            '--owner',
            '--group',
            '--devices',
            '--links',
            '--times',
            '--block-size=2048',
            '--recursive',

];

$Conf{RsyncRestoreArgs} = [
       #
       # Do not edit these!
       #
       '--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 -w 3 $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;

$Conf{SendmailPath} = '/usr/sbin/sendmail';

$Conf{EMailNotifyMinDays} = 2.5;

$Conf{EMailFromUserName} = 'backuppc';

$Conf{EMailAdminUserName} = 'backuppc';

$Conf{EMailUserDestDomain} = '';

$Conf{EMailNoBackupEverSubj} = undef;
$Conf{EMailNoBackupEverMesg} = undef;

$Conf{EMailNotifyOldBackupDays} = 7.0;

$Conf{EMailNoBackupRecentSubj} = undef;
$Conf{EMailNoBackupRecentMesg} = undef;

$Conf{EMailNotifyOldOutlookDays} = 5.0;

$Conf{EMailOutlookBackupSubj} = undef;
$Conf{EMailOutlookBackupMesg} = undef;

$Conf{CgiAdminUserGroup} = '';
$Conf{CgiAdminUsers}     = 'hoder backuppc';

$Conf{CgiURL} = 'http://cache.ktt.com.tw/cgi-bin/backuppc/BackupPC_Admin';

$Conf{Language} = 'en';

$Conf{CgiUserHomePageCheck} = '';
$Conf{CgiUserUrlCreate}     = 'mailto:%s';

$Conf{CgiDateFormatMMDD} = 1;

$Conf{CgiNavBarAdminAllHosts} = 1;

$Conf{CgiSearchBoxEnable} = 1;

$Conf{CgiNavBarLinks} = [
    {
        link  => "?action=view&type=docs",
        lname => "Documentation",    # actually displays $Lang->{Documentation}
    },
    {
        link  => "http://backuppc.sourceforge.net/faq",
        name  => "FAQ",              # displays literal "FAQ"
    },
    {
        link  => "http://backuppc.sourceforge.net",
        name  => "SourceForge",      # displays literal "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} = '<meta http-equiv="pragma" content="no-cache">';

$Conf{CgiImageDir} = '/var/www/html/backuppc';

$Conf{CgiExt2ContentType} = { };

$Conf{CgiImageDirURL} = '/backuppc';

$Conf{CgiCSSFile} = 'BackupPC_stnd.css';

phantom

  • SA 苦力組
  • 俺是博士!
  • *****
  • 文章數: 2185
    • 檢視個人資料
backuppc問題
« 回覆 #3 於: 2006-06-28 15:12 »
看不懂很光榮嗎?
一定要強調再強調的告訴大家嗎?
Linux 非萬能, 沒 Linux 萬萬不能.
root = God
apt-get install ultimate-horsepower