Mark Rogers | 6 Jun 2013 17:44
Picon

Using lftp to download backups via FTP, retaining recent backups on host

I have a need to download files via FTP from a host, deleting old backups on 
the host but retaining recent ones. In other words, we want to archive all 
backups off the host, and only leave the last one or two days of backups on 
the host.

I have never used lftp before but it looked like I could so something like this:

- Download (using "mirror -c") all files more than 2 days old 
(--older-than=2days), deleting them on success (--remove-source-files)
- Download again but without the --older-than and --remove-source-files 
switches to download everything else, without deleting it

This works on day 1, but when it runs the next day it skips the files it 
already has and doesn't delete them (even if they're now more than 2 days old).

Is this by design, or a bug? Is there a way to work around this?

I'm using the version in the Ubuntu 12.04 LTS repositories (4.3.3) if that 
makes a difference.

--

-- 
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER

_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

(Continue reading)

David Crick | 29 May 2013 22:44
Picon

lftp 4.4.8 not compiling

buffer_zlib.cc: In member function 'virtual void
DataInflator::ResetTranslation()':
buffer_zlib.cc:90:42: error: 'inflateReset2' was not declared in this scope
    z_err = inflateReset2(&z, 16+MAX_WBITS);
                                          ^
make[1]: *** [buffer_zlib.lo] Error 1
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Shigeharu Isoda | 19 May 2013 08:56

getenv issue

Hello, Alexander.

I've recently begun to use lftp, it works great!

But I found lftp ignores getenv() return value, this causes
segmentation fault, while lftp invoked on no 'TERM' environment
variable, such as cron job.

Here is a simple patch.

Thank you!

*** src/lftp_tinfo.cc   Sun May 19 14:10:47 2013
--- src/lftp_tinfo.cc.orig      Tue Mar 19 21:56:07 2013
***************
*** 54,60 ****
        terminfo_ok = false;
  #elif defined(HAVE_TGETSTR)
     static char buf[2048];
!    if(getenv("TERM")==NULL||tgetent(buf,getenv("TERM")) == -1)
        terminfo_ok = false;
  #endif
  }
--- 54,60 ----
        terminfo_ok = false;
  #elif defined(HAVE_TGETSTR)
     static char buf[2048];
!    if(tgetent(buf,getenv("TERM")) == -1)
        terminfo_ok = false;
  #endif
(Continue reading)

Alexander V. Lukyanov | 29 May 2013 12:35
Picon
Gravatar

lftp-4.4.8 released.

Hello!

lftp version 4.4.8 has been released.

What's new:
* add support for redirections in torrent metainfo fetching.
* add support for gzip Content-Encoding in http.
* fixed an endless loop in mirror from sftp.

--

-- 
   Alexander.
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Petr Písař | 25 May 2013 08:15
Picon

[PATCH] Better Czech translation for dot files

---
 po/cs.po | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/po/cs.po b/po/cs.po
index 4459215..f6f000e 100644
--- a/po/cs.po
+++ b/po/cs.po
 <at>  <at>  -12,10 +12,10  <at>  <at> 
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: lftp 4.4.6\n"
+"Project-Id-Version: lftp 4.4.7\n"
 "Report-Msgid-Bugs-To: lftp-bugs <at> lftp.yar.ru\n"
 "POT-Creation-Date: 2013-05-23 12:03+0400\n"
-"PO-Revision-Date: 2013-05-21 19:42+0200\n"
+"PO-Revision-Date: 2013-05-25 07:49+0200\n"
 "Last-Translator: Petr Pisar <petr.pisar <at> atlas.cz>\n"
 "Language-Team: Czech <translation-team-cs <at> lists.sourceforge.net>\n"
 "Language: cs\n"
 <at>  <at>  -1093,7 +1093,7  <at>  <at>  msgstr ""
 "nebo přes rouru do vnějšího příkazu.\n"
 "\n"
 " -1                   – jednosloupcový výstup\n"
-" -a, --all            - zobrazí tečkové soubory\n"
+" -a, --all            - zobrazí soubory začínající tečkou\n"
 " -B, --basename       – ukáže jen názvy souborů bez cesty\n"
 "     --block-size=VEL – použije bloky po VEL bajtech\n"
 " -d, --directory      – vypíše záznamy adresářů namísto jejich obsahu\n"
(Continue reading)

Alexander V. Lukyanov | 23 May 2013 10:07
Picon
Gravatar

lftp-4.4.7 released.

Hello!

lftp version 4.4.7 has been released.

What's new:
* translations update (pl, cs).
* fixed "get -c" looping in some cases.
* fixed translations encoding (pl, it, es, pt_BR).
* fixed occasional file corruption and garbage logging in Fish protocol.

--

-- 
   Alexander.
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Petr Písař | 21 May 2013 19:45
Picon

[PATCH] Update Czech translation for 4.4.6

---
 po/cs.po | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/po/cs.po b/po/cs.po
index 62b572c..9ef370c 100644
--- a/po/cs.po
+++ b/po/cs.po
 <at>  <at>  -1,7 +1,7  <at>  <at> 
 # Czech translation of lftp.
 # Copyright (C) 2009 Alexander V. Lukyanov <lav <at> yars.free.net>
 # This file is distributed under the same license as the lftp package.
-# Petr Pisar <petr.pisar <at> atlas.cz>, 2009, 2010, 2011, 2012.
+# Petr Pisar <petr.pisar <at> atlas.cz>, 2009, 2010, 2011, 2012, 2013.
 #
 # handshake → dojednání (spojení)
 # option → volba
 <at>  <at>  -12,10 +12,10  <at>  <at> 
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: lftp 4.4.0\n"
+"Project-Id-Version: lftp 4.4.6\n"
 "Report-Msgid-Bugs-To: lftp-bugs <at> lftp.yar.ru\n"
 "POT-Creation-Date: 2013-05-17 14:34+0400\n"
-"PO-Revision-Date: 2012-09-30 20:40+0200\n"
+"PO-Revision-Date: 2013-05-21 19:42+0200\n"
 "Last-Translator: Petr Pisar <petr.pisar <at> atlas.cz>\n"
 "Language-Team: Czech <translation-team-cs <at> lists.sourceforge.net>\n"
 "Language: cs\n"
(Continue reading)

vic - ukr.net | 20 May 2013 11:20
Favicon

slash at the end of path in cwd command

Hello,
I have some special server witch waiting for '/' (slash) at the end of 
directory path during 'cd' execution.

 lftp SYSTEM <at> 10.34.105.9:~> cd /DW1-/
cd: Access failed: 550 "/DW1-" : No such directory or permission denied.

Does it posible to send '/' slash at the end of directory name?
(As I see some ftp client done it.)
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Alexander V. Lukyanov | 20 May 2013 09:21
Picon
Gravatar

Re: Question to the lftp manpage

On Fri, May 17, 2013 at 07:42:25PM +0200, Hauke Hoffmann wrote:
> I've got a question because of an inaccuracy in the manpage für
> "lftp". For the parameter "net:max-retries (number)" it sais:
>
>     "the maximum number of sequential retries of an operation
> without success.  0 means unlimited."
>
> Example:
>
> "set net:max-retries 0" <-- no limit for retrying
> "set net:max-retries 1"  <-- So this means: 1 try + 1 retry (in case
> of an error) = 2 tries
>
> This would mean that you cannot disable retrying for lftp. Is that
> correct or is it possible to unset retrying?

Probably the wording of that description should be changed, as 1 means
"no retries".

--
   Alexander.
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Jakub Bogusz | 19 May 2013 09:08

Polish translation update and encoding fix for lftp 4.4.6

Hello,

I've just updated Polish translation for lftp 4.4.6.

Also note that pl.po included in lftp 4.4.6 is incorrectly recoded to
UTF-8 (assuming input in iso-8859-1 instead of iso-8859-2 and without
charset update in header).

The updated translation, properly recoded to UTF-8, is available at:
http://qboosh.pl/pl.po/lftp-4.4.6.pl.po

Please apply.

--

-- 
Jakub Bogusz    http://qboosh.pl/
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Alexander V. Lukyanov | 17 May 2013 15:15
Picon
Gravatar

lftp-4.4.6 released.

Hello!

lftp version 4.4.6 has been released.

What's new:
* improved sftp backend with symlink info retrieving (readlink).
* new cls option -a to show dot files.
* new setting cmd:cls-exact-time.
* fixed NULL dereference when torrent:use-dht is off.
* fixed torrent for info_hash with NUL character (broken in 4.4.4).

--

-- 
   Alexander.
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Gmane