擅长:python、mysql、java
<p>首先,您有<a href="http://www.csync.org/" rel="nofollow noreferrer">http://www.csync.org/</a>,它有点像rsync(但是由于rsync只与SSH一起工作,而不用于FTP),但用于HTTP/FTP传输。在</p>
<p>如果你不喜欢这个选项,总是有“lftp”或“curllftpfs”,stackoverflow有一个姊妹站点,可以为您提供答案:</p>
<p><a href="https://serverfault.com/questions/24622/how-to-use-rsync-over-ftp">https://serverfault.com/questions/24622/how-to-use-rsync-over-ftp</a></p>
<p>如果这不能给您任何帮助,那么在python中总是有ftplib:
<a href="http://docs.python.org/library/ftplib.html" rel="nofollow noreferrer">http://docs.python.org/library/ftplib.html</a></p>
<pre><code>from ftplib import FTP
ftpretr = FTP('get.ftp.com') # connect to host, default port
ftpretr.login() # user anonymous, passwd anonymous@
ftpretr.retrbinary('RETR README', open('README', 'wb').write)
ftpretr.quit()
ftpsend = FTP('send-to.ftp.com','login','password')
ftpsend.storbinary('STOR todo.txt', open('README','rb'))
ftpsend.quit()
</code></pre>
<p>现在我帮不了你那么多,不为你做一切,我猜你想学吗?使用系统argv[]获取输入/输出文件,也可能用于源主机和目标。在</p>
<p>享受吧!:)</p>