rsync 分为客户端和服务端,服务端安装环境 Linux AS4 2.6.9_42 软件版本:rsync-2.6.9
软件下载地址:
服务端安装过程
1.tar -xzvf rsync-2.6.9.tar.gz #解压缩安装文件
2.cd rsync-2.6.9
3. ./configure --prefix=/usr/local/rsync #配置安装目录为/usr/local/rsync
4. make
5.make install
服务端配置记录
1. vi rsyncd.conf
uid = nobody
gid = nobody
use chroot = no
max connections = 4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
log file = /var/log/rsyncd.log
[test]
path = /var/test
ignore errors
read only = true
list = false
hosts allow = 192.168.0.0
hosts deny = 0.0.0.0/32
auth users = backup
secrets file = /etc/backserver.pas
:wq
2.vi /etc/backserver.pas
backup:test
:wq
3.chmod 400 /etc/backserver.pas
4.运行rsync服务 : rsync --daemon
客户端安装配置
系统环境: Linux AS4 2.6.9_42 软件版本:rsync-2.6.9
客户端安装过程
1. tar -zxvf rsync-2.6.9.tar.gz
2. cd rsync-2.6.9
3. ./configure --prefix=/usr/local/rsync
4. make
5. make install
6. mkdir /var/test
7. chmod 777 /var/test
8. cd /usr/local/rsync/bin
9. ./rsync -vzrtopg --progress /var/rsync #文件同步测试
阅读(2775) | 评论(0) | 转发(0) |