rsync·t???÷′??¨
rsync ·t???÷′??¨
±?·?°?2éó??í?§???÷?ˉí?2?·t???÷??μ?·?ê?
·t???÷??????£o
1.?¨o??àó|????
mkdir /etc/rsyncd
touch /etc/rsyncd/rsyncd.conf
touch /etc/rsyncd/rsyncd.secrets
chmod 600 /etc/rsyncd/rsyncd.secrets
2.?÷è·Dèòa±?·Yμ?????
3.DT?????????t
pid file = /var/run/rsyncd.pid
log file = /var/log/rsyncd.log
read only = no
max connections = 50
use chroot = yes
[mysql]
hosts allow = 192.168.0.0/24 10.13.2.0/24 210.51.19.0/24 220.181.67.0/24
path = /data/mysql/ //Dèòa±?·Yμ?????
uid = root
gid = root
secrets file = /etc/rsyncd/rsyncd.secrets
read only = no
[www]
hosts allow = 192.168.0.0/24 10.13.2.0/24 210.51.19.0/24 220.181.67.0/24
path = /data/www/
uid = root
gid = root
secrets file = /etc/rsyncd/rsyncd.secrets
read only = no
4.DT???ü?????t
vim /etc/rsyncd/rsyncd.secrets
mysql:123.com
www:123.com
5.???ˉrsync daemon?£ê?
/usr/bin/rsync --daemon --config=/etc/rsyncd/rsyncd.conf
6.′ò?a·à?e??873???ú
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 873 -j ACCEPT
?í?§??éè??
1.ìí?ó?ü?????t
cd /root/
vim rsyncd.secrets
??ê?è??ü??123.com?′?é
2.í?2?êy?Y
/usr/bin/rsync -vzrtopg --password-file=/root/rsyncd.secrets root@192.168.0.10::mysql /data/mysql/
3.?é?¤êy?Y
4.ìí?ó????è???
crontab -e
±???3?×? “ShareDream” 2??í
相关新闻>>
- 发表评论
-
- 最新评论 更多>>