{Disarmed} {Disarmed} Re: Move files to ftp
Alexander Lukyanov <[email protected]> Wed, 17 Dec 2014 12:05:18 +0000
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CANnoEwotgXxbQuuZ-c4zWa9MJSKpDrOWEU9NZhEtAvgBHKOpBg@mail.gmail.com> |
You can run rm -rf after mirror to remove any remaining files. 23:37, сб, 13.12.2014, Kai Stian Olstad <[email protected]>: > Hi, > > I'm trying to move files recursive to a ftp server. > Since mput doesn't support moving files recursive I'm using mirror instead. > > lftp -e 'mirror -c -p -R --Remove-source-files /source /target; bye' -u ftp > ftp://192.168.1.10 > > This sort of work since it remove the source files aka. move on the first > run. > But if the same files is copied in to /target directory again with cp -p to > preserve the modification time, lftp doesn't put the file to the ftp server > since the file already exist in /target and it doesn't remove the source > file > either. > > Shouldn't lftp remove the source anyway since I used the > --Remove-source-files > argument? > > Or is there another way to achieve this? > > > -- > Kai Stian Olstad > PS: I tried sending this mail from a different domain but it did not > go through so I'll try with Gmail. > _______________________________________________ > 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