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?
source
share