- 论坛徽章:
- 0
|
我在suse 9.0安装和配置rsync 实现linux 文件同步,
/etc/rsyncd.conf 主要配置:
secrets file = /etc/rsyncd.secrets
motd file = /etc/rsyncd.conf
read only = yes
list = yes
uid = nobody
gid = nobody
hosts allow = 192.168.100.90 #哪些电脑可以访问rsync服务
hosts deny = 192.168.100.0/24 #哪些电脑不可以访问rsync服务
max connections = 2
#再定义要rsync目录
[terry]
comment = Terry 's directory from 192.168.100.21
path = /home/terry
auth users = terry,rsync
/etc/rsyncd.secrets主要配置:
terry:123446
# chmod 600 /etc/rsyncd.secrets
#rsync -vazu -progress --delete --password-file=/etc/rsync.secret terry@192.168.100.21:/terry/ /home 命令时,还要输入terry的password
请高人指导一下,怎样设置运行上的命令时 不用输入password就可以实现不同linux之间的同步
谢谢! |
|