It should be after the mirror command ср, 18 мая 2016, 15:33 Steven Dennis <nzdreame...@gmail.com>:
> What about the -e here > > lftp -u user,pass *-e* "set sftp:connect-program 'ssh > > Is this in the wrong place? Where should not be? > > Again thanks. > On May 18, 2016 4:04 AM, "Alexander V. Lukyanov" <l...@netis.ru> wrote: > >> On Tue, May 17, 2016 at 06:36:16AM -0700, Steven Dennis wrote: >> > Thanks for taking a look at my code. I thought that the -e enabled >> lftp to >> > delete files. If I remove the --newer-than what option should I use and >> > where should I put it to delete files on the target side when not on the >> > remote side? >> >> I don't see -e either. >> >> I was wrong about --newer-than option, it should not limit files to be >> removed. >> Add -vvv options to see the files to be deleted. >> >> -- >> Alexander. >> >> > On May 16, 2016 11:33 PM, "Alexander Lukyanov" <lavv...@gmail.com> >> wrote: >> > >> > > Also --newer-than limits the file sets on the target side too, so >> older >> > > files won't be deleted. >> > > >> > > вт, 17 мая 2016, 9:31 Alexander Lukyanov <lavv...@gmail.com>: >> > > >> > >> I don't see the --delete option in your command line. >> > >> >> > >> пн, 16 мая 2016, 19:30 Steven Dennis <nzdreame...@gmail.com>: >> > >> >> > >>> Hello everyone, >> > >>> >> > >>> I am trying get lftp to make my local folders match my remote >> folder. >> > >>> When I delete a file/folder on the remote I want lftp to remove it >> on the >> > >>> local as well. The man page says I can use the -e or --delete or >> > >>> --delete-first >> > >>> >> > >>> This is what I have been using and am not sure why it isn't deleting >> > >>> local files and folders that have been removed from the remote site. >> > >>> >> > >>> lftp -u user,pass -e "set sftp:connect-program 'ssh -a -x -T -c >> arcfour >> > >>> -o Compression=no'; mirror -v -c --newer-than=now-4hours --loop >> > >>> --use-pget-n=3 /home/user/finished/TV /home/pi/usrmnt/Target/; >> quit" >> > >>> sftp://XXX.XXX.XXX.XXX:XXX >> > >>> >> > >>> Any help is greatly appreciated. >> > >>> >> > >>> Thanks >> > >>> >> > >>> Steve >> > >>> _______________________________________________ >> > >>> lftp mailing list >> > >>> lftp@uniyar.ac.ru >> > >>> http://univ.uniyar.ac.ru/mailman/listinfo/lftp >> > >>> >> > >> >> >> > _______________________________________________ >> > lftp mailing list >> > lftp@uniyar.ac.ru >> > http://univ.uniyar.ac.ru/mailman/listinfo/lftp >> >
_______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp