Re: lftp not removing files from local directory
Alexander Lukyanov <[email protected]> Tue, 17 May 2016 06:31:18 +0000
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CANnoEwrsh6uThKeOWi5_CBVMTYpc7EZOXAF5+t=Zq0xcCxvmLA@mail.gmail.com> |
I don't see the --delete option in your command line. пн, 16 мая 2016, 19:30 Steven Dennis <[email protected]>: > 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 > [email protected] > http://univ.uniyar.ac.ru/mailman/listinfo/lftp > _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp