特殊:Badtitle/NS100:BackupPC
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BackupPC }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/af | • {{#if: UbuntuHelp:BackupPC|Afrikaans| [[::BackupPC/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/ar | • {{#if: UbuntuHelp:BackupPC|العربية| [[::BackupPC/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/az | • {{#if: UbuntuHelp:BackupPC|azərbaycanca| [[::BackupPC/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/bcc | • {{#if: UbuntuHelp:BackupPC|جهلسری بلوچی| [[::BackupPC/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/bg | • {{#if: UbuntuHelp:BackupPC|български| [[::BackupPC/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/br | • {{#if: UbuntuHelp:BackupPC|brezhoneg| [[::BackupPC/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/ca | • {{#if: UbuntuHelp:BackupPC|català| [[::BackupPC/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/cs | • {{#if: UbuntuHelp:BackupPC|čeština| [[::BackupPC/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/de | • {{#if: UbuntuHelp:BackupPC|Deutsch| [[::BackupPC/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/el | • {{#if: UbuntuHelp:BackupPC|Ελληνικά| [[::BackupPC/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/es | • {{#if: UbuntuHelp:BackupPC|español| [[::BackupPC/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/fa | • {{#if: UbuntuHelp:BackupPC|فارسی| [[::BackupPC/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/fi | • {{#if: UbuntuHelp:BackupPC|suomi| [[::BackupPC/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/fr | • {{#if: UbuntuHelp:BackupPC|français| [[::BackupPC/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/gu | • {{#if: UbuntuHelp:BackupPC|ગુજરાતી| [[::BackupPC/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/he | • {{#if: UbuntuHelp:BackupPC|עברית| [[::BackupPC/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/hu | • {{#if: UbuntuHelp:BackupPC|magyar| [[::BackupPC/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/id | • {{#if: UbuntuHelp:BackupPC|Bahasa Indonesia| [[::BackupPC/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/it | • {{#if: UbuntuHelp:BackupPC|italiano| [[::BackupPC/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/ja | • {{#if: UbuntuHelp:BackupPC|日本語| [[::BackupPC/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/ko | • {{#if: UbuntuHelp:BackupPC|한국어| [[::BackupPC/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/ksh | • {{#if: UbuntuHelp:BackupPC|Ripoarisch| [[::BackupPC/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/mr | • {{#if: UbuntuHelp:BackupPC|मराठी| [[::BackupPC/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/ms | • {{#if: UbuntuHelp:BackupPC|Bahasa Melayu| [[::BackupPC/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/nl | • {{#if: UbuntuHelp:BackupPC|Nederlands| [[::BackupPC/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/no | • {{#if: UbuntuHelp:BackupPC|norsk| [[::BackupPC/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/oc | • {{#if: UbuntuHelp:BackupPC|occitan| [[::BackupPC/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/pl | • {{#if: UbuntuHelp:BackupPC|polski| [[::BackupPC/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/pt | • {{#if: UbuntuHelp:BackupPC|português| [[::BackupPC/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/ro | • {{#if: UbuntuHelp:BackupPC|română| [[::BackupPC/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/ru | • {{#if: UbuntuHelp:BackupPC|русский| [[::BackupPC/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/si | • {{#if: UbuntuHelp:BackupPC|සිංහල| [[::BackupPC/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/sq | • {{#if: UbuntuHelp:BackupPC|shqip| [[::BackupPC/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/sr | • {{#if: UbuntuHelp:BackupPC|српски / srpski| [[::BackupPC/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/sv | • {{#if: UbuntuHelp:BackupPC|svenska| [[::BackupPC/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/th | • {{#if: UbuntuHelp:BackupPC|ไทย| [[::BackupPC/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/tr | • {{#if: UbuntuHelp:BackupPC|Türkçe| [[::BackupPC/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/vi | • {{#if: UbuntuHelp:BackupPC|Tiếng Việt| [[::BackupPC/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/yue | • {{#if: UbuntuHelp:BackupPC|粵語| [[::BackupPC/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/zh | • {{#if: UbuntuHelp:BackupPC|中文| [[::BackupPC/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/zh-hans | • {{#if: UbuntuHelp:BackupPC|中文(简体)| [[::BackupPC/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupPC | UbuntuHelp:BackupPC | {{#if: | :}}BackupPC}}/zh-hant | • {{#if: UbuntuHelp:BackupPC|中文(繁體)| [[::BackupPC/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BackupPC|:BackupPC|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BackupPC/zh | | {{#ifexist: BackupPC/zh | | {{#ifeq: {{#titleparts:BackupPC|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BackupPC|1|-1|}} | zh | | }}
BackupPC
BackupPC is a great backup program for an Ubuntu server. However, backing up Ubuntu client machines doesn’t work “out of the box” due to Ubuntu’s lack of a root account. The following describes how to make BackupPC work with Ubuntu's sudo implementation. By adding sudo to the TAR commands in /etc/backuppc/config.pl and adding backuppc to the sudoers list, you’re able to perform both backups and restores directly from the web-based interface.
Modify /etc/backuppc/config.pl
- Run “sudo gedit /etc/backuppc/config.pl”
- Add sudo to the TAR
Client
andClientRestore
commands - Change
$Conf{TarClientCmd}
and$Conf{TarClientRestoreCmd}
to read
$Conf{TarClientCmd} = ‘sudo $tarPath -c -v -f - -C $shareName’ . ‘ –totals’;
$Conf{TarClientRestoreCmd} = ‘sudo $tarPath -x -p –numeric-owner –same-owner’ . ‘ -v -f - -C $shareName’;
- Change
$Conf{BackupFilesExclude}
(these seem to all be temp files that you don’t really need to backup) to read
$Conf{BackupFilesExclude} = [’/proc’, ‘/dev’, ‘/tmp’, ‘/mnt’, ‘/media’, ‘/sys’, ‘/lost+found’, ‘/usr/src’, ‘/var/lib’, ‘/var/tmp’, ‘/var/cache’, ‘/var/spool’, ‘/var/run’, ‘/var/lock’, ‘/var/games’, ‘/home/*/.Trash’, ‘/home/*/.mozilla/*/*/Cache’, ‘/home/*/.mozilla/*/*/Cache.Trash’];
Add backuppc to the sudoers list
- Run “sudo visudo”
- At the bottom of the file add
# Allow backuppc to run tar without a password backuppc ALL=NOPASSWD: /bin/tar
alternatives
For other ways of backing up some or all of your system, see BackupYourSystem .