要追加文本 "testing" 到 置顶的文件
echo "testing " >> filename;
server端配置 /etc/rsyncd.conf 文件
[root@ etc]# cat rsyncd.conf
log file=/var/log/rsyncd.log
uid = nobody
gid = nobody
hosts allow = 1.1.0.0/16
max connections = 10
use chroot = true
[aa]
comment = this is testing
path = /root/test
read only = true
list = true
客户端拷贝文件
/usr/bin/rsync -auqz server ip 地址 ::aa/..... /root/...........


gwpxjb 于 2007-12-13 18:00:04发表:
学习~~