2010-06-04 46 views
1

我想鏡像只有一些文件「不是目錄」。我知道PHP的FTP功能,並使用它們,只是想知道,如果我能使服務器到服務器FXP工作的任何方式。如何在兩個ftps之間鏡像文件?

我看到CLI工具lftp,但它只鏡像dir。 並且如果有一些其他工具可以fxp文件。

+0

沒有人知道:(? – Arshdeep 2010-06-04 18:04:35

+4

你可以嘗試等待超過8分鐘一個答案,或者實際上煩心事接受你的其他問題的答案。 – 2010-06-04 18:06:52

+1

爲什麼不rsync的工作? – 2010-06-04 18:10:00

回答

0

您應該使用rsync來執行此操作。

直接從他們的網站:

 
rsync is a file transfer program for Unix systems. rsync uses the "rsync 
algorithm" which provides a very fast method for bringing remote files into 
sync. It does this by sending just the differences in the files across the 
link, without requiring that both sets of files are present at one of the 
ends of the link beforehand. 

Some features of rsync include 

    * can update whole directory trees and filesystems 
    * optionally preserves symbolic links, hard links, file ownership, 
     permissions, devices and times 
    * requires no special privileges to install 
    * internal pipelining reduces latency for multiple files 
    * can use rsh, ssh or direct sockets as the transport 
    * supports anonymous rsync which is ideal for mirroring 
0

不知道rsync的建議,因爲rsync不支持通過FTP進行鏡像,最後我檢查了一下。

如果你想鏡像文件,一個好的方法是使用-mirror選項,或檢查ftpcopy。

相關問題