码迷,mamicode.com
首页 > 其他好文 > 详细

通过rsync实现数据备份

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

标签:rsync

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实现数据备份

标签:rsync

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!