rsync从linux到linux的文件同步备份
一、环境
需要备份文件的服务器(服务器端):192.168.1.201 (RHEL 5)
接收备份文件的服务器(客户端):192.168.1.202 (CENTOS 5)
二、安装配置
1.服务器端的配置
A、采用系统默认安装的rsync 编辑/etc/rsyncd.conf文件,如果没有则新建一个。 vi /etc/rsyncd.conf #[globale] strict modes= yes #check passwd file port= 873 #default port logfile= /var/log/rsyncd.log pidfile= /var/run/rsyncd.pid max connections= 4 #[modules] [testlink] #备份模块 uid= root gid= root path= /usr/local/apache/htdocs/testlink/upload_area #要备份的目录 read only= no host allow= * auth users= wwyhy secrets file= /etc/rsyncd.scrt [bugfree] #备份模块 uid= root gid= root path= /usr/local/apache/htdocs/bugfree/BugFile #要备份的目录 read only= no host allow= * auth users= wwyhy secrets file= /etc/rsyncd.scrt [redmine] #备份模块 uid= root gid= root path= /usr/local/redmine-0.8.1/files #要备份的目录 read only= no host allow= * auth users= wwyhy secrets file= /etc/rsyncd.scrt
By admin
read more