rsync 文件同步工具配置记录
时间:2007-06-06 来源:aklus
rsync 分为客户端和服务端,服务端安装环境 Linux AS4 2.6.9_42 软件版本:rsync-2.6.9
软件下载地址:http://rsync.samba.org/ftp/rsync/
服务端安装过程
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 [email protected]::test /var/rsync #文件同步测试
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 [email protected]::test /var/rsync #文件同步测试
相关阅读 更多 +