LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 884|回复: 2

ftp服务器之间的数据同步怎么实现!

[复制链接]
发表于 2004-12-2 09:10:04 | 显示全部楼层 |阅读模式
ftp服务器之间的数据同步怎么实现!
现在有两个ftp server
ftp1 linux9.0 ip 218.4.*.* (vsFTPd 1.1.3)
ftp2 windows ip 218.5.*.* Serv-U FTP Server v5.2
现在我要做的就是ftp1 /home/user/in/下的文件时时的和 ftp2 /bub/home/user/in 下面实现同步,我只能在ftp1上作文章,ftp2我只有ftp的权限;
有什么好办法吗!
发表于 2004-12-2 21:34:51 | 显示全部楼层
use rsync and ssh tunneling.

e.g. rsync -avu -e 'ssh -l username' ftp2_ip:/bub/home/user/in /home/user/in

this is ftp1 sync with ftp2. Requirement:
1. both servers have rsync.
2. both servers have ssh
if you need to put it into script, configure the ssh authentication on ftp2 for ftp1
发表于 2004-12-2 22:47:13 | 显示全部楼层
也可以使用lftp的FXP功能,较简单。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表