Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
|
doc:backuppc:etc_backuppc_nomdemachine.pl [2005/10/27 15:55] lehobey créée |
doc:backuppc:etc_backuppc_nomdemachine.pl [2006/02/23 17:03] (Version actuelle) lehobey |
||
|---|---|---|---|
| Ligne 13: | Ligne 13: | ||
| $Conf{XferMethod} = 'archive'; | $Conf{XferMethod} = 'archive'; | ||
| + | ====== Mes exemples ====== | ||
| + | |||
| + | ===== ssh+rsync ===== | ||
| + | |||
| + | <file> | ||
| + | # | ||
| + | # ssh+rsync | ||
| + | # | ||
| + | $Conf{XferMethod} = 'rsync'; | ||
| + | |||
| + | $Conf{RsyncClientCmd} = 'nice -n 19 $sshPath -q -x -l root $host nice -n 19 $rsyncPath $argList+'; | ||
| + | |||
| + | $Conf{BackupFilesExclude} = [ '/proc', '/sys', '/var/local/unique', 'secring.gpg', '/mnt', '/media' ]; | ||
| + | </file> | ||
| + | |||
| + | ===== sudo+rsync ===== | ||
| + | |||
| + | <file> | ||
| + | # | ||
| + | # sudo+rsync | ||
| + | # | ||
| + | $Conf{XferMethod} = 'rsync'; | ||
| + | |||
| + | $Conf{RsyncClientCmd} = 'nice -n 19 sudo $rsyncPath $argList+'; | ||
| + | $Conf{RsyncClientRestoreCmd} = 'sudo $rsyncPath $argList+'; | ||
| + | |||
| + | $Conf{BackupFilesExclude} = [ '/proc', '/sys', '/var/local/unique', 'secring.gpg', '/mnt', '/media' ]; | ||
| + | </file> | ||