标签:客户 list 客户端 配置文件 gid path use 同步 rsync -av
一、服务端
1、设置rsync配置文件
max connections = 10 pid file = /home/user/rsync/rsyncd.ccb.pid lock file = /home/user/rsync/rsync.ccb.lock log file = /home/user/rsync/rsyncd.ccb.log port = xxxx [backupfile] path = /home/user/backup/ comment = backupfile read only = yes list = no hosts allow = ip/24 uid=user gid=group use chroot = no auth users = user secrets file = /home/user/rsync/rsync.ccb.secrets
2、设置密码文件,并赋600权限,密码文件内容格式: user:password
3、启动,rsync --daemon --port=xxx --config=/home/ccb/rsync/rsyncd.conf
二、客户端
1、设置密码文件,并赋600权限,密码文件内容格式: password
2、同步命令:rsync -av --password-file=/home/oracle/backup/rsync.ccb.secrets --delete --port=port user@IP::backupfile/ /backup/112backup/
标签:客户 list 客户端 配置文件 gid path use 同步 rsync -av
原文地址:https://www.cnblogs.com/liudebo/p/9270194.html