Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why lftp mirror --only-newer does not transfer "only newer" file?

Tags:

lftp

I want to automate to upload files of my websites. But, remote server does not support ssh, so I try 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 local files are not changed, no files are uploded by this command. But, I change a file and run the command, all files are uploaded.

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

Is anyone know why lftp mirror --only-newer does not transfer "only newer" file?

like image 757
Noah Kobayashi Avatar asked Jul 15 '12 07:07

Noah Kobayashi


1 Answers

mirror -R -n works for me as a very simple backup of new files

like image 73
Ciro Avatar answered Oct 05 '22 20:10

Ciro