rsync服务部署
rsync服务:
配置文件:
/etc/rsync.conf
uid=root gid=root port=873 max connections=2000 timeout = 6000 log file=/var/log/rsyncd.log pid file=/var/run/rsyncd.pid lock file=/var/run/rsyncd.lock #motd file=/etc/rsyncd/rsyncd.motd read only=yes [BACKUP_svn1] path=/home/data/svn/svn1 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [BACKUP_SVN2] path=/home/data/svn/svn2 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [BACKUP_SVN3] path=/home/data/svn/svn3 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [BACKUP_SVN4] path=/home/data/svn/svn4 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [BACKUP_SVN5] path=/home/data/svn/svn5 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [BACKUP_SVN6] path=/home/data/svn/svn6 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [BACKUP_mongodb1] path=/home/data/mongodb/mongodb1 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [BACKUP_mongodb2] path=/home/data/mongodb/mongodb2 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [BACKUP_mongodb3] path=/home/data/mongodb/mongodb3 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [BACKUP_mongodb4] path=/home/data/mongodb/mongodb4 list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no [analysis_BACKUP] path=/home/data/analysis list=no ignore errors auth users=apicloud secrets file=/etc/rsyncd.passwd read only = no
/etc/rsyncd.passwd
apicloud:yzkjback2017
@南非波波
github:https://github.com/swht