On Mon, Oct 27, 2014 at 01:30:42PM +0530, akshay gupta wrote:
> ---> RETR test.txt
> <--- 150 Opening BINARY mode data connection for 'test.txt' (202 bytes).
> ---- Got EOF on data connection
> ---- Closing data socket
> <--- 226 Transfer complete.

So the file cannot be renamed locally, right? Is there a permissions problem?

-- 
   Alexander.

> On Mon, Oct 27, 2014 at 1:18 PM, Alexander Lukyanov <lavv...@gmail.com>
> wrote:
> 
> > Can you provide a debug log? Why lftp cannot replace the old file?
> >
> > 2014-10-27 10:44 GMT+03:00 akshay gupta <akshaygupta...@gmail.com>:
> >
> >> Hi,
> >>
> >> I am trying to mirror files using lftp, I have tested a use case where a
> >> file at the source machine gets modified but the file name remains the
> >> same. After mirroring, lftp is unable to replace the old file and also
> >> leaves a temporary file.
> >>
> >> For example. If source have file a.txt and its mirrored successfully at
> >> the destination, now if I update a.txt append some content and save it with
> >> same name. If I run lftp mirror again then its not able to replace the
> >> existing a.txt but it also leaves the temp file a.txt_transit_ behind. And
> >> if i run the mirror multiple times it always downloads the changed a.txt, i
> >> can see this from the lftp logs.
> >>
> >> Suggestion: Will it make sense to keep versions of the files as they are
> >> updated at the source. Like if a.txt is changed at source then lftp mirror
> >> will save it as a.txt_{TIMESTAMP}_. Every time a file is updated it will be
> >> saved with a new time stamp. And mirror will consider these file to decide
> >> whether to download or not.
> >>
> >>
> >> Thanks,
> >> Akshay
> >>
> >>
> >>
> >>
> >>
> >
> >
> > --
> >    Alexander.
> >

> _______________________________________________
> 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

Reply via email to