Linux安装rsync
来源:互联网 发布:吉林省网络培训学院 编辑:程序博客网 时间:2024/05/22 15:12
- Linux安装rsync
1. 下载安装
mkdir -p /root/soft
cd /root/soft
wget -c ftp://ftp.samba.org/pub/rsync/rsync-3.0.8.tar.gz
tar -zxvf rsync-3.0.8.tar.gz
cd rsync-3.0.8
./configure --prefix=/usr/local/rsync
make
make install
==========================rsync 服务端配置:
1. 建立文件夹:
mkdir -p /etc/rsyncd/
mkdir -p /home/aa
2. 建立配置主文件:vim /etc/rsyncd/rsyncd.conflog file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
# port = 873uid = root
gid = root
use chroot = no
read only = yes
max connections = 5#hosts allow = *
#hosts deny = *[aa]
path = /home/aa
ignore errors
list = no
auth users = root,koko
secrets file = /etc/rsyncd/rsyncd.secrets
exclude = new/ asdfg/
3. 编辑密码文件,它是一个明文的文本文件:vim /etc/rsyncd/rsyncd.secrets
root:123
koko:123
保存后修改文件权限:chmod 600 /etc/rsyncd/rsyncd.secrets
4. 启动:/usr/bin/rsync --daemon --config=/etc/rsyncd/rsyncd.conf
5. 可以查看是否有873端口:netstat -naltp
--- 至此 rsync 服务端已经配置好了!==========================
rsync客户端配置:
在客户端建立已经文件保存rsync服务端用户密码,vim /etc/rsyncko.pass
123 #服务端密码文件定义的密码即可
保存后修改文件权限:chmod 600 /etc/rsyncko.pass--- 至此 rsync 客户端已经配置好了!
==========================
客户机同步服务器命令:
rsync -vzrtopg --progress --delete root@192.168.1.105::aa /home/aa --password-file=/etc/rsyncko.pass====================================================
Windows安装cwrsync :
下载地址:http://sourceforge.net/projects/sereds/files/cwRsync
1. 安装好之后,把安装目录添加到windows的path变量中,方便直接在命令行下调用rsync命令
2. 打开命令行窗口,然后执行
rsync -vzrtopg --progress --delete root@192.168.1.105::aa /cygdrive/e/koko这时cwrsync就开始帮我们同步数据了!
- linux下安装rsync
- Linux下安装rsync
- Linux安装rsync
- linux rsync安装使用
- linux rsync安装配置
- Linux版rsync安装
- linux os 安装 rsync
- linux--rsync--rsync安装、配置、实例
- Windows-linux rsync安装配置
- linux下rsync安装配置
- Linux中安装使用rsync
- linux 安装配置 rsync服务
- Linux备份命令rsync 安装和使用
- linux centos系统下安装rsync
- linux安装rsync服务同步数据
- Linux下rsync 安装与配置
- rsync安装
- rsync 安装
- ORACLE IS 和 AS 用法
- 使用FileZilla Server建立FTP服务
- linux 内核的链表操作(好文不得不转)
- 第一天:splash页面和防盗功能
- 解决ssh不能添加已访问的主机到信任列表的问题(Failed to add the host to the list of known hosts) .
- Linux安装rsync
- Name node is in safe mode.
- ACTION_PICK与ACTION_GET_CONTENT
- 第二天:防盗功能实现
- Hadoop报错“could only be replicated to 0 nodes, instead of 1” .
- 通过Astar算法实现8数码问题(C语言)
- 第三天:手机归属地
- 第四天:拦截电话,还原短信,程序管理
- jquery实现全选功能