首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

rsync配备

2012-09-10 
rsync配置1.什么是rsync??rsync 是一个linux,Unix系统下的文件同步和传输工具。rsync是用 “rsync 算法”提供

rsync配置

1.什么是rsync?

?rsync 是一个linux,Unix系统下的文件同步和传输工具。rsync是用 “rsync 算法”提供了一个客户机和远程文件服务的文件同步的快速方法。
Some features of rsync include
rsync 包括如下的一些特性:
* can update whole directory trees and filesystems
能更新整个目录和树和文件系统;
* optionally preserves symbolic links, hard links, file ownership, permissions, devices and times
有选择性的保持符号链链、硬链接、文件属于、权限、设备以及时间等;
* requires no special privileges to install
对于安装来说,无任何特殊权限要求;
* internal pipelining reduces latency for multiple files
对于多个文件来说,内部流水线减少文件等待的延时;
* can use rsh, ssh or direct sockets as the transport
能用rsh、ssh 或直接端口做为传输入端口;
* supports anonymous rsync which is ideal for mirroring
支持匿名rsync 同步文件,是理想的镜像工具;

?

?

2.rsync配置:server端的配置文件有rsyncd.conf?? rsyncd.motd? ?rsyncd.secrets

?? rsyncd.conf?:是rsync服务器主要配置文件

?

[root@localhost ~]# more /etc/rsyncd.motdWelcome to use the rsync services!

?

?

?3.启动rsync服务

?? 启动rsync 服务器相当简单,--daemon 是让rsync 以服务器模式运行:

?? rsync --daemon

?

?注: 如果你找不到rsync 命令,你应该知道rsync 是安装在哪了。运行whereis rsync

?

4.客户端

rsync -vazu /data/? rsync@hostip::wwwroot --password-file=/etc/rsyncd.secrets
?

热点排行