金融其它

rsync 的问题

我想用rsync通过ssh来备份。
出现了如下情况:
[root@PC_IN_LAN backuptest]#rsync -e "ssh -l mailuser01" -avzL --delete --progress [email]backup@192.168.0.6[/email]::dep1 /root/storetest/                                   
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
        Welcome to server1
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [receiver=2.6.8]
我在server1上安装了rsync, 是在根用户下安装的。源码安装在/opt/rsync目录下。
为了解决command not find 我用了符号链接 ln -s /opt/rsync/bin/rsync /usr/bin/rsync
虽然第一行错误去掉了 但是第二,三行依然存在

由于自己不能解决上面的问题,为了加密,用ssh隧道貌似也可以实现
ssh -N -L 873:127.0.0.1:873 user@remotehost & >/dev/null
rsync -avzL --delete --progress [email]backup@127.0.0.1[/email]::dep1 /root/storetest
这样子能实现加密
不过上面的问题那位大虾能给我解决下
参与0

0同行回答

“答”则兼济天下,请您为题主分忧!

提问者

之微
总裁助理/总经理助理中海投
擅长领域: 存储备份数据安全

问题状态

  • 发布时间:2010-12-03
  • 关注会员:0 人
  • 问题浏览:1578
  • X社区推广