rsyncd.conf 설정예
#!/bin/sh
/usr/bin/rsync -avzrt –delete 210.95.174.21::data /USER_DIR/maildir
#!/bin/sh
/usr/bin/rsync -avzrt –delete 210.95.174.21::mysql /usr/local/mysql/var/mail
#!/bin/sh
/usr/bin/rsync -avzrt –delete 210.95.174.21::httpd /home/httpd
#####/etc/rsyncd.conf 설정#####
motd file = /etc/rsync.motd
log file = /RLOG/rsyncd.log
pid file = /var/run/rsyncd.pid
max connections = 3
syslog facility = local3
[data]
path = /DATA_BACKUP/maildir
comment = user directory
uid = root
gid = root
use chroot = yes
read only = yes
hosts allow = 210.95.174.26
timeout 600
[mysql]
path = /usr/local/mysql/var/mail
comment = mysql data
uid = root
gid = root
use chroot = yes
read only = yes
hosts allow = 210.95.174.26
timeout 600
[httpd]
path = /home/httpd
comment = homepage data
uid = root
gid = root
use chroot = yes
read only = yes
hosts allow = 210.95.174.26
timeout 600
30 03 * * * su – root -c ‘/root/scripts/data.sh’
30 04 * * * su – root -c ‘/root/scripts/mysql.sh’
45 04 * * * su – root -c ‘/root/scripts/httpd.sh’