Why doesn't lftp mirror --only-newer transfer only the “new” file?

I want to automate downloading files from my sites. But the remote server does not support ssh, so I'm trying to execute the lftp command below instead of rsync.

lftp -c "set ftp:use-mdtm no && set ftp:timezone -9 && open -u user,password ftp.example.com && mirror -Ren local_directory remote_directory"

If the local files are not changed, no files will be expanded with this command. But I change the file and run the command, all files are downloaded.

I know the MDTM lftp / ftp problem. So, I tried "install ftp: use-mdtm no && set ftp: timezone -9", but all files are uploaded, although I only changed one file.

Does anyone know why the lftp --only-newer mirror does not transfer only the "new" file?

+8
source share
2 answers

On the next page

http://www.bouthors.fr/wiki/doku.php?id=en:linux:synchro_lftp

:

/ , → .

, --only-newer --ignore-time, , , , . , , , , .

+6

mirror -R -n

+1

All Articles