rsync同步数据

server端:

pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
log file = /var/log/rsyncd.log


transfer logging = yes
log format = %t %a %m %f %b
syslog facility = local3


timeout = 300
max connections = 0


reverse lookup = no


[backup]
    path = /cms_bak/
    comment = snapshot
    list = no
    read only = false
    use chroot = yes
    uid = 0
    gid = 0
    hosts allow = --允许客户端连接的ip
    hosts deny = *


client端:

rsync -uav 服务端IP::[服务器端名]  /home/oracle/backup/

你可能感兴趣的:(rsync同步数据)