首页 > 其他 > 详细

通过rsync实现数据备份

时间:2014-08-15 18:03:49      阅读:359      评论:0      收藏:0      [点我收藏+]

1、Server端

下载rsync-3.1.1pre2.tar.gz

# tar zxvf rsync-3.1.1pre2.tar.gz

# cd ./rsync-3.1.1pre2

# ./configure --prefix=/usr/local/rsync

# make && make install

# vim /etc/rsyncd.conf

uid = nobody

gid = nobody

use chroot = no 

max connections = 10

strict modes = yes

pid file = /var/run/rsyncd.pid

lock file = /var/run/rsync.lock

log file = /var/log/rsyncd.log


[yrdce]

path = /customer_file

comment = Customer file

ignore errors

read only = =no

write only = no

hosts allow = 10.0.100.119

list = true

uid = root

gid = root

auth users = backup

secrets file = /usr/local/rsync/server.pass

# vim /usr/local/rsync/server.pass

backup:123456

# chmod 600 /usr/local/rsync/server.pass


# /usr/local/bin/rsync --daemon

# echo  “/usr/local/bin/rsync --daemon” >>/etc/rc.local


Client端

下载rsync-3.1.1pre2.tar.gz

# tar zxvf rsync-3.1.1pre2.tar.gz

# cd ./rsync-3.1.1pre2

# ./configure --prefix=/usr/local/rsync

# make && make install

# vim /usr/local/rsync/server.pass

123456

# chmod 600 /usr/local/rsync/server.pass

# /usr/local/bin/rsync -vzrtopg --delete --progress backup@10.0.100.118::yrdce /customer_file_backup --password-file=/usr/local/rsync/server.pass


本文出自 “kimileonis” 博客,请务必保留此出处http://kimileonis.blog.51cto.com/5531747/1540705

通过rsync实现数据备份,布布扣,bubuko.com

通过rsync实现数据备份

原文:http://kimileonis.blog.51cto.com/5531747/1540705

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!