Re: Bug in lftp mirror when using xfer:use-temp-file option

Alexander Lukyanov <[email protected]> Mon, 27 Oct 2014 11:48:20 +0400
Newsgroups gmane.network.lftp.user,gmane.network.lftp.devel
Message-ID <CANnoEwpXUiV_EUTiv1W+bcPJ_s+mDKx+cuX47OkN-eq5h0KSEg@mail.gmail.com>
--===============3054084480859493539==
Content-Type: multipart/alternative; boundary=f46d043bdf0a2aa6ba050662c110

--f46d043bdf0a2aa6ba050662c110
Content-Type: text/plain; charset=UTF-8

Can you provide a debug log? Why lftp cannot replace the old file?

2014-10-27 10:44 GMT+03:00 akshay gupta <[email protected]>:

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

--f46d043bdf0a2aa6ba050662c110
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Can you provide a debug log? Why lftp cannot replace the o=
ld file?<br></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"=
>2014-10-27 10:44 GMT+03:00 akshay gupta <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:[email protected]" target=3D"_blank">[email protected]<=
/a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hi,<div>=
<br></div><div>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 rem=
ains the same. After mirroring, lftp is unable to replace the old file and =
also leaves a temporary file.</div><div><br></div><div>For example. If sour=
ce 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 lf=
tp 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 multip=
le times it always downloads the changed a.txt, i can see this from the lft=
p logs.</div><div><br></div><div>Suggestion: Will it make sense to keep ver=
sions of the files as they are updated at the source. Like if a.txt is chan=
ged at source then lftp mirror will save it as a.txt_{TIMESTAMP}_. Every ti=
me a file is updated it will be saved with a new time stamp. And mirror wil=
l consider these file to decide whether to download or not.</div><div><br><=
/div><div><br></div><div>Thanks,</div><div>Akshay</div><div><br></div><div>=
<br></div><div><br></div><div><br></div></div>
</blockquote></div><br><br clear=3D"all"><br>-- <br><div dir=3D"ltr"><div><=
/div>=C2=A0=C2=A0 Alexander.<br></div>
</div>

--f46d043bdf0a2aa6ba050662c110--

--===============3054084480859493539==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

--===============3054084480859493539==--