1. config file: /etc/rsyncd.conf
2. sample config file
uid = root gid = root use chroot = true pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock log file = /var/log/rsyncd.log
[share] path = /fileserver/share ignore errors read only = ture secrets file = /fileserver/auth/backup.scrt
|
3. secrets file sample
root@myhost:/fileserver/auth# ls -al backup.scrt
---------- 1 root root 10 2009-01-15 16:57 backup.scrt
root@myhost:/fileserver/auth# more backup.scrt
gfebackup
root@myhost:/fileserver/auth# |
4. Start rsync
rsync --daemon
5. Add it to /etc/rc.local
阅读(356) | 评论(0) | 转发(0) |