个人工具
104.160.18.24
该IP地址的讨论
登录
查看“UbuntuHelp:BackupPC”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:BackupPC”的源代码
来自Ubuntu中文
←
UbuntuHelp:BackupPC
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/BackupPC}} {{Languages|UbuntuHelp:BackupPC}} == BackupPC == BackupPC is a great backup program for an Ubuntu server. However, it 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 vim /etc/backuppc/config.pl” **Add sudo to the TAR <code><nowiki>Client</nowiki></code> and <code><nowiki>ClientRestore</nowiki></code> commands ****Change <code><nowiki>$Conf{TarClientCmd} </nowiki></code>and <code><nowiki>$Conf{TarClientRestoreCmd} </nowiki></code>to read <pre><nowiki> $Conf{TarClientCmd} = ‘sudo $tarPath -c -v -f - -C $shareName’ . ‘ –totals’; </nowiki></pre> <pre><nowiki> $Conf{TarClientRestoreCmd} = ‘sudo $tarPath -x -p –numeric-owner –same-owner’ . ‘ -v -f - -C $shareName’; </nowiki></pre> **Change <code><nowiki>$Conf{BackupFilesExclude} </nowiki></code>(these seem to all be temp files that you don’t really need to backup) to read <pre><nowiki> $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’]; </nowiki></pre> === Add backuppc to the sudoers list === **Run “sudo visudo” **At the bottom of the file add <pre><nowiki> # Allow backuppc to run tar without a password backuppc ALL=NOPASSWD: /bin/tar </nowiki></pre> === alternatives === For other ways of backing up some or all of your system, see BackupYourSystem . [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:BackupPC
。