BackupPC部署<二>

6 、编辑BackupPC主配置文件
vim /etc/BackupPC/config.pl
 
$Conf{CgiAdminUsers} = 'backuppc';           
 
7 、建立用户验证文件
htpasswd -c  /etc/BackupPC/apache.users backuppc  
New password: 1234                              
Re-type new password:1234                       
Adding password for user backuppc
 
8 、启动Apache服务并设置run level 3自启动
service httpd start
chkconfig --level 3 httpd on
 
9 、设置Backuppc用户运行指定命令
visudo
## Comment out Defaults requiretty
## Add the following two lines.
Defaults !lecture
backuppc ALL=NOPASSWD:/bin/gtar,/bin/tar        
 
10 、重启Httpd服务并启动Backuppc
service httpd restart
service backuppc start
chkconfig backuppc on
 
11 、设置WINDOWS客户端的rsyncd.conf配置文件
 
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid
 
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[data]
path = /XXX/XXX
read only = true
transfer logging = no
#auth users = backup
#secrets file = passwd
 
至此,Backuppc Apache整合安装完毕,可通过浏览器使用backuppc用户登录进行备份、恢复工作。
 
 备份报告截图:

你可能感兴趣的:(职场,休闲,linux备份)