bash – 使用lftp镜像远程文件夹中的特定文件

我想通过ftp从远程目录镜像文件。

以下代码有效:

lftp -c 'open ipaddress; user myusername mypassword; mirror -e /files/ /home/user/files/retrieve/; quit' 

但是,我希望能够指定我需要检索的文件的年龄和大小,如mtime -2 and -size +10M

我在哪里添加这些值?

我最终做了以下事情:

 lftp -c 'open ipaddress; user myusername mypassword; mirror -r -N now-2days /files/ /home/user/files/retrieve/; quit' 

哪里

-r是’不要去子目录’;
-N是’较新的文件或在过去2天内创建的’