双向同步

1
2
3
4
5
6
7
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
yum install curlftpfs
make ftp_test
curlftpfs ftp://IP_ADDRESS/test/ /home/yemaoshen/ftp_test/ -o user="yemaosheng:com" -o allow_other
make local_test
yum install unison
unison ./ftp_test ./local_test -auto -silent

如果出现 FATAL: Module fuse not found. 那么再 yum install dkms dkms-fuse

如果是单向,下载这个perl脚本ftpsync.zip,然后执行./ftpsync.pl ftp://xxx:xxx@xxx/test /home/xxx/local_test

笔记,Curlftpfs起的是挂载作用
unison是双向同步工具
ftpsync.pl脚本是单向同步工具
然后,原作者地址:
http://yemaosheng.com/?p=1119