FTPサーバーから新しいサーバーに大量のファイルを転送する必要があります。何千ものファイルが存在する可能性があるため、過去3か月間にアップロードされたファイルに限定したいと思います。それは可能ですか。可能であればどのように行いますか?
また、実際にダウンロードを開始する前に、ダウンロードの大きさを確認することはできますか?
ありがとう
承認された回答:
lftp
を使用できます そのために、そのmirror
を利用します 指図。これがマンページからの抜粋です:
mirror [OPTS] [source [target]]
Mirror specified source directory to local target directory. If target
directory ends with a slash, the source base name is appended to
target directory name. Source and/or target can be URLs pointing to
directories.
[cut...]
-N, --newer-than=SPEC download only files newer than specified time
--on-change=CMD execute the command if anything has been changed
--older-than=SPEC download only files older than specified time
[...]
mirror
には本当に多くの便利なオプションがあるので、間違いなくマニュアルを見てください。 – --allow-chown
のように 、--allow-suid
または--parallel[=N]
例えば。 Lftpは、sftp
などの他のアクセスプロトコルでも機能します。 、fish
またはhttp(s)
。