質問

「ディレクトリではない」ファイルのみをミラーリングしたい。私はPHP FTP機能を知っており、それらを使用していることも知っていますが、サーバーからサーバーへのFXPの動作を行うことができるかどうかを知りたいだけです。

CLIツールLFTPを見ましたが、それはdirのみを反映しています。また、ファイルをfxpできる他のツールがある場合。

役に立ちましたか?

解決

2つのサーバーに接続して、FXPコマンドを手動で指定できます。
良い例があります ウィキペディアのファイル交換プロトコル ページ

他のヒント

使用する必要があります 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 

RSYNCはFTP上のミラーリングをサポートしていないため、RSYNCの推奨事項についてはわかりませんが、最後に確認しました。

ファイルをミラーリングする場合は、-mirrorオプションを使用してWGETを使用するか、FTPCOPYをチェックしてください。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top