Re: [lftp] lftp-4.4.4 ipv6 question

2013-04-23 Thread Alexander Lukyanov
Try "set dns:order inet". -- Alexander. 2013/4/24 Justin Piszcz > Aside from changing lftp to disable IPv6 support, is there a way to > disable IPv6 for transfers or to prefer IPv4 for the initial connection? > By default if IPv6 module/option is loaded in the Linux kernel it tries > IPv

Re: [lftp] How to mirror (with FXP) specific dir

2013-05-06 Thread Alexander Lukyanov
Use "&&" or "set fail-exit yes". BTW, mirror automatically creates the target directory and you can specify target URL directly without any slots. -- Alexander. 2013/5/6 Hernan Lopes > slot FTPDESTINY; mkdir /some/other/dirs/This-Dir-Destiny; cd > /some/other/dirs/This-Dir-Destiny; > > The

Re: [lftp] How to mirror (with FXP) specific dir

2013-05-13 Thread Alexander Lukyanov
y intent is to connect to many ftps.. and leave them open/idling > connected, and i will keep sending those commands to transfer dirs from > some source into some destiny > > > On Mon, May 6, 2013 at 10:17 AM, Alexander Lukyanov wrote: > >> Use "&&" or &quo

Re: [lftp] getenv issue

2013-05-30 Thread Alexander Lukyanov
I have applied the fix. It will be available in the next lftp version (in github now). Thank you! 2013/5/19 Shigeharu Isoda > 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

Re: [lftp] lftp mirror not removing directories...

2013-07-02 Thread Alexander Lukyanov
--Remove-source-files removes only plain files, not directories. It's done that way because the direcories could contain other files which were not downloaded (e.g. because they were excluded or they are present locally already). 2013/6/25 Chris Richards > One small issue I have noticed is that

Re: [lftp] crash in SFtp::MergeAttrs at fi->SetUser (utf8_to_lc(a->owner));

2013-11-07 Thread Alexander Lukyanov
Thank you for the report! This patch should fix the problem. -- Alexander. 2013/11/7 Daniel Fazekas > Recent versions of LFTP seem to crash regularly when using SFTP, always > with a similar looking backtrace along the line of: > > OS X, lftp 4.4.10: > strlen () > DirectedBuffer::PutTransl

Re: [lftp] Unable to Compile LFTP with OPENSSL under Debian Wheezy

2013-11-07 Thread Alexander Lukyanov
lftp --version gets the openssl version from SSL_version_str variable in case it is available. Probably the version of openssl does not provide that variable. It should not affect other operations though. And BTW, on fedora 19 lftp shows openssl version correctly. 2013/11/7 Purple Nugs > I am

Re: [lftp] mirror hangs itself / gets stuck

2013-12-27 Thread Alexander Lukyanov
I'd recommend to use newest stable lftp version (4.4.14). Then try several possibilities to access the server: 1. disable ssl (set ftp:ssl-allow no) or disable ssl for file listings connections only (set ftp:ssl-protect-list no) 2. try to use fish or sftp if they are allowed (open fish://user@serve

Re: [lftp] Weird behavior using get command in lftp

2013-12-27 Thread Alexander Lukyanov
Please use newest lftp version (4.4.14) and turn on debug output using "debug" command. -- Alexander. 2013/12/13 Rey Guillen > Hi. > > I'm getting a weired behavior when doing a get command in lftp. one the > flat files I'm trying to extract from the sftp server becomes empty (zero > byt

Re: [lftp] lftp 4.4.9 doesn't compile

2013-12-27 Thread Alexander Lukyanov
examples are not really needed, so you can still install lftp. -- Alexander. 2013/10/7 Philipp Thomas > Compilation for openSUSE factory (gcc 4.8.1, glibc 2.18) fails. Seems that > somewhere c++defs.h is not being included/referenced. BTW, shouldn't g++ be > called on this file instead of

Re: [lftp] Continuous Mirror of new folders

2014-01-18 Thread Alexander Lukyanov
You can use "repeat mirror" command for continuous mirroring. "attach" command can be used to control backgrounded lftp instance. HTH. 17.01.2014 19:02 пользователь "Purple Nugs" написал: > > > I would like to make something so that lftp never disconnects from an ftp > and constantly mirrors a di

Re: [lftp] SSH key trouble

2014-01-18 Thread Alexander Lukyanov
Does plain ssh try to use WT key? Try in lftp "set | grep WT". 09.01.2014 18:34 пользователь "John Niendorf" написал: > Hi Everyone, > > I'm running the latest stable version of lftp on a laptop running Ubuntu > 12.04 > > My problem is I recently changed SSH keys and lftp still looks for the old

Re: [lftp] named pipe and exit

2014-01-19 Thread Alexander Lukyanov
you can use -e option with "source" command, or feed the commands to stdin of lftp. 2014/1/20 Hernan Lopes > > The option -f script_file says: Execute commands in the file and exit. > This option must be used alone without other arguments. > > > How can i make -f not exit ? I will use a named p

Re: [lftp] tell if file is directory

2014-01-30 Thread Alexander Lukyanov
You can try to use "cls" command, then analyze the output, or just try to "cd" to the could-be-directory and act depending on the resulting exit code, like this: cd DIR && do-something cd DIR || do-something-else 2014-01-27 Robert DuToit : > Hi Alexander, > > Is there a way to tell if a

{Disarmed} [lftp] {Disarmed} Re: ls color for SFTP

2014-03-11 Thread Alexander Lukyanov
Try to use "cls" command. -- Alexander. 2014-03-10 17:48 GMT+04:00 susumew : > Is it possible to color the ouput of ls when connecting to a server via > SFTP? > lftp sftp://exam...@myserver.com:21 > set color:dir-colors "... has no effect. > lftp ftp://... works fine. > > Thank you :) > > _

Re: [lftp] Can't connect to FreeBSD sftp

2014-03-11 Thread Alexander Lukyanov
I think you can try to use strace to find out what data lftp receives from the connection (if any). Then compare that with the data lftp receives from other sftp servers. Also it would help if you provided me with access to a FreeBSD sftp account. -- Alexander. 2014-02-19 5:16 GMT+04:00 Mic

Re: [lftp] forward slash on root not allowed

2014-05-12 Thread Alexander Lukyanov
Please send the debug output of lftp. Which protocol do you use? 2014-05-12 3:55 GMT+04:00 Robert DuToit : > Hi Alexander, > > I have found that some servers won’t allow a forward slash at root level. > leaving it off solves the problem but otherwise an error is thrown “mkdir…. > permission den

Re: [lftp] FW: Regarding LFTP checksum issue

2014-06-06 Thread Alexander Lukyanov
Do you have checksum issues if you use plain "get" command? Does pget work as expected with other ftp servers? 2014-04-01 13:15 GMT+04:00 PRADHAN Priyabrata : > Fyi&a > > > > Thanks > > Priya > > > > *From:* PRADHAN Priyabrata > *Sent:* Tuesday, April 01, 2014 6:14 PM > *To:* 'l...@yars.free.n

Re: [lftp] lftp and patterns

2014-06-06 Thread Alexander Lukyanov
Which backend protocol do you use? If ftp, then ls arguments are wholly passed to server side as LIST argument. If other protocols, then most probably you may only specify a directory to list. There is another command - cls - which handles arguments locally and provides better functionality compar

Re: [lftp] lftp Exit code when using mget

2014-06-06 Thread Alexander Lukyanov
I could add an option for mget, but also it is also possible to use mirror command instead. Please consider if it is really possible in your case. 2014-04-15 17:33 GMT+04:00 : > Hi, > > how can we poll a remote server using “mget *” for files, to not fail if > there are no files available? > >

Re: [lftp] Trying to create a directory

2014-06-06 Thread Alexander Lukyanov
Git HEAD sources now contain mkdir -f option for quiet operation. Funny that mkdirJob had already boolean quiet flag. 2014-01-04 18:47 GMT+04:00 Gianni Piccini : > Hi to all. I would ask if there is a solution to my (mainly estethic) > problem. I use lftp launching it with a script in parameters

Re: [lftp] mirror feature request and tab completion bug

2014-08-29 Thread Alexander Lukyanov
Tab completion is not perfect, but you can switch local/remote completion by using Meta-Tab (or Esc+Tab) combination. 2014-08-29 1:33 GMT+04:00 Dan39 : > Hello, I have been using lftp for a while and love it! Thank you very much. > > When mirroring it would be a huge help if it was possible to

Re: [lftp] Why is "PROT P" issued twice?

2014-09-08 Thread Alexander Lukyanov
Please send the debug log (use command "debug" to turn it on). 2014-09-06 18:58 GMT+04:00 Stephen Powell : > > I searched the mailing list archives, but I was unable to find anything > related to this. The lftp client is issuing the "PROT P" command to the > server twice, back to back. Why does

Re: [lftp] lftp does not wait for "221 Goodbye" message before closing control connection

2014-09-15 Thread Alexander Lukyanov
Here is a patch to make lftp wait for QUIT reply at exit. I think to avoid lingering one can set use-quit no. 2014-09-16 3:44 GMT+04:00 Stephen Powell : > On Mon, 15 Sep 2014 05:04:36 -0400 (EDT), Alexander V. Lukyanov wrote: > > > > As far as I can tell, lftp does not wait for QUIT reply only wh

Re: [lftp] lftp does not wait for "221 Goodbye" message before closing control connection

2014-09-16 Thread Alexander Lukyanov
Can you send me a sample of the script? 2014-09-17 6:36 GMT+04:00 Stephen Powell : > On Tue, 16 Sep 2014 02:38:21 -0400 (EDT), Alexander Lukyanov wrote: > > > > Here is a patch to make lftp wait for QUIT reply at exit. I think to > avoid > > lingering one can set use-

Re: [lftp] lftp does not wait for "221 Goodbye" message before closing control connection

2014-09-16 Thread Alexander Lukyanov
Ok, I could reproduce the proble you see. For now try to remove the "close" command from the script. 2014-09-17 10:47 GMT+04:00 Alexander Lukyanov : > Can you send me a sample of the script? > > 2014-09-17 6:36 GMT+04:00 Stephen Powell : > >> On Tue, 16 Sep 2014 02:

Re: [lftp] lftp does not wait for "221 Goodbye" message before closing control connection

2014-09-16 Thread Alexander Lukyanov
Here is an additional patch to wait for QUIT reply after "close" command. 2014-09-17 10:50 GMT+04:00 Alexander Lukyanov : > Ok, I could reproduce the proble you see. For now try to remove the > "close" command from the script. > > 2014-09-17 10:47 GMT+04:00 Alexan

Re: [lftp] lftp does not wait for "221 Goodbye" message before closing control connection

2014-09-18 Thread Alexander Lukyanov
Look for gnutls_bye (gnutls) or SSL_shutdown (openssl) calls. See https://github.com/lavv17/lftp/commit/fc468dc987cb45bab4a3d31a1e832601bc239774 for the change. 2014-09-19 3:24 GMT+04:00 Stephen Powell : > As to your claim that the new development snapshot of lftp > does indeed send a close_notif

Re: [lftp] Status for incomplete files

2014-09-19 Thread Alexander Lukyanov
Please try http://lftp.yar.ru/ftp/devel/lftp-4.5.5.20140919.tar.gz, it introduces another setting xfer:temp-file-name. You can thus change the temporary file name; an asterisk is replaced by the original file name. So you would do "set xfer:temp-file-name _tmp_*" to achieve wanted behaviour. 2014-

Re: [lftp] Status for incomplete files

2014-09-19 Thread Alexander Lukyanov
2014 at 4:58 PM, Alexander Lukyanov > wrote: > >> Please try http://lftp.yar.ru/ftp/devel/lftp-4.5.5.20140919.tar.gz, it >> introduces another setting xfer:temp-file-name. You can thus change the >> temporary file name; an asterisk is replaced by the original file name. So &

Re: [lftp] tail -f

2014-09-22 Thread Alexander Lukyanov
Loop is easy: repeat 2s "cat /log/error.log | tail" tail -f is harder, it's in TODO for a long time. but I did not get to implementing it. 2014-09-22 19:59 GMT+04:00 Szépe Viktor : > > Now I issue `cat /log/error.log | tail` one in a while to see log file > changes > > 1 > It is possible to loop

Re: [lftp] tail -f

2014-09-22 Thread Alexander Lukyanov
You can get easy "tail -f" with fish protocol or with a plain ssh: quote "tail -f /log/error.log" 2014-09-22 21:17 GMT+04:00 Alexander Lukyanov : > Loop is easy: repeat 2s "cat /log/error.log | tail" > tail -f is harder, it's in TODO for a long tim

Re: [lftp] lftp does not wait for "221 Goodbye" message before closing control connection

2014-09-26 Thread Alexander Lukyanov
I cannot reproduce it. Please use strace on the lftp process, also use "pstack PID" on it and send me the output. 2014-09-26 6:26 GMT+04:00 Stephen Powell : > On Tue, 23 Sep 2014 01:49:57 -0400 (EDT), Alexander V. Lukyanov wrote: > > On Mon, Sep 22, 2014 at 10:02:29PM -0400, Stephen Powell wrote:

Re: [lftp] possible bug in lftp mirror using xfer:use-temp-file option

2014-09-30 Thread Alexander Lukyanov
In unix it is usually allowed to rename open files, so lftp does that. I'll see if it is possible to reverse the order. 2014-09-30 12:18 GMT+04:00 akshay gupta : > Hi, > > I am trying to mirror files on Fuse mounted hdfs file system ( > https://wiki.apache.org/hadoop/MountableHDFS). Lftp is creat

Re: [lftp] Question regarding fix in 4.6.0

2014-10-21 Thread Alexander Lukyanov
No, it isn't. I have decided that the change is too significant to include in a maintenance release. Use 4.6. And I don't consider it a serious bug - it was there for years and nobody complained. 21.10.2014 14:47 пользователь написал: > Hi Alexander, > > we’ve seen that in 4.6.0 a bug “ftp: wait

Re: [lftp] Question regarding fix in 4.6.0

2014-10-21 Thread Alexander Lukyanov
rtant for us, but I wonder why most of the transfers are working > fine, if this bug was already in lftp for years. Any idea? > > > > *From:* Alexander Lukyanov [mailto:lavv...@gmail.com] > *Sent:* Tuesday, October 21, 2014 1:03 PM > *To:* Mütze, Tilo, NMD-C4.2 > *Subject:* Re

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

2014-10-27 Thread Alexander Lukyanov
Can you provide a debug log? Why lftp cannot replace the old file? 2014-10-27 10:44 GMT+03:00 akshay gupta : > 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

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

2014-10-27 Thread Alexander Lukyanov
> 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 2

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

2014-10-27 Thread Alexander Lukyanov
This change should fix the problem. https://github.com/lavv17/lftp/commit/b1164d695393cf8ec8429bb2b5caa9f05cfc4d39 2014-10-27 14:20 GMT+03:00 Alexander Lukyanov : > I have found the bug. As a workaround, use "set xfer:clobber yes". > > 2014-10-27 13:06 GMT+03:00 akshay gu

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

2014-10-28 Thread Alexander Lukyanov
It looks like a bug in the FS (fuse and/or hdfs) which also hits rsync: https://groups.google.com/a/cloudera.org/forum/#!msg/cdh-user/R1GR2Asj_lc/f_uuIjG5R1UJ Please try this workaround. 2014-10-28 10:29 GMT+03:00 akshay gupta : > will giving --delete-first option in lftp mirror help in my case?

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

2014-10-28 Thread Alexander Lukyanov
BTW, it looks like mirror should remove the old file before transferring the new one, please run "mirror -vvv" to check that. You can also run strace to check system call sequence. 2014-10-28 11:18 GMT+03:00 Alexander Lukyanov : > It looks like a bug in the FS (fuse and/or hdfs) wh

Re: [lftp] Possible Bug in lftp mirror using mirror:sort-by option

2014-10-29 Thread Alexander Lukyanov
Mirror in lftp works directory by directory. It does not build full list of files first, so it cannot sort the whole list. Maybe the mirror algorithm should be redesigned to build the whole recursive list first. What do you think? 2014-10-29 10:07 GMT+03:00 akshay gupta : > Hi, > > I am trying to

[lftp] Re: some questions

2014-10-30 Thread Alexander Lukyanov
2014-10-30 13:10 GMT+03:00 Farzin Hamrahi : > Hi > Is lftp check transferred files check sum (md5sum or another ones) after > transferring files with get or mirror command ? > It's possible. There is xfer:verify setting, when it's true the script specified by xfer:verify-command is run. verify-fi

Re: [lftp] ftp mode Z

2014-11-05 Thread Alexander Lukyanov
Mode Z is not supported. Compressed SSH should not be a problem. 2014-11-05 0:18 GMT+03:00 Farzin Hamrahi : > Hi > Does lftp support FTP Mode Z compression? > Can I use compressed TCP/IP−Sessions using SSH with default > sftp:connect-program by ssh -C option ? > How aboute compressed TCP/IP−Sessi

Re: [lftp] Possible Bug in lftp mirror using mirror:sort-by option

2014-11-12 Thread Alexander Lukyanov
gupta >> wrote: >> >>> I think the functionality of mirror:sort-by option implies that the >>> order is for all the files irrespective of the directory structure. Or may >>> be it should support both the options and it would be configuration defined >>>

[lftp] Fwd: sftp with an encrypted key

2014-12-09 Thread Alexander Lukyanov
Specify the passphrase for the key as password for the connection. In the example you have provided, you have specified an empty passphrase, thus it failed to decrypt the key. If you don't want to give the passphrase in cleartext, don't specify a password in the URL and lftp will ask for a passwor

Re: [lftp] Mirror and ASCII transfer selection

2014-12-13 Thread Alexander Lukyanov
There is no such feature in lftp. I don't think it's feasible to do: ascii mode changes the file and the next mirror will consider the file changed and thus re-transfer it. 2014-12-12 14:52 GMT+04:00 Franck Eyraud : > > Hi lftp list, > > Just a quick question, because I didn't find in the man pag

{Disarmed} [lftp] {Disarmed} Re: Move files to ftp

2014-12-17 Thread Alexander Lukyanov
You can run rm -rf after mirror to remove any remaining files. 23:37, сб, 13.12.2014, Kai Stian Olstad : > 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 /

{Disarmed} [lftp] {Disarmed} Re: Move files to ftp

2014-12-17 Thread Alexander Lukyanov
delete > new files that have been added to source. > > > > - > > Kai Stian > > > > > > On Wednesday 17. December 2014 12:05:18 Alexander Lukyanov wrote: > > > You can run rm -rf after mirror to remove any remaining files. > > > > >

Re: [lftp] Fwd: sftp with an encrypted key

2014-12-18 Thread Alexander Lukyanov
Currently it is not possible as ftp does not ask for passwords asynchronously, and the need for password arises only during the connection phase. 4:23, ср, 10.12.2014, Andrew Schulman : > > Specify the passphrase for the key as password for the connection. In the > > example you have provided, yo

Re: [lftp] Ways to know number of new files after mirror

2014-12-24 Thread Alexander Lukyanov
I don't know if it would be useful, but mirror has --on-change option to run a script after mirroring which produced a change. 2014-09-23 15:03 GMT+04:00 akshay gupta : > Hi All, > > I want to know how many new files are added after mirror command has > completed. I am going to run the lftp comma

{Disarmed} [lftp] {Disarmed} Re: Move files to ftp

2014-12-24 Thread Alexander Lukyanov
; > > - > > Kai Stian > > > > > > On Wednesday 17. December 2014 19:50:00 Alexander Lukyanov wrote: > > > Ok, I see the problem. I'll implement a solution. > > > 17.12.2014 17:34 пользователь "Kai Stian Olstad" > > > > > &

Re: [lftp] 100% spinning CPU when uploading (maybe over ftps?)

2015-01-28 Thread Alexander Lukyanov
The command "debug" turns on verbose messages in lftp. ср, 28 янв. 2015, 18:32, SanskritFritz : > I would do it gladly. Is there a description about the process > somewhere? Currently I don't know how to provide debug output. > > On Wed, Jan 28, 2015 at 4:12 PM,

Re: [lftp] Problem with Spam in Gmail with this list

2015-02-16 Thread Alexander Lukyanov
SPF record was recently fixed for the domain uniyar.ac.ru, so the spam problem should become less frequent. ср, 11 февр. 2015, 19:29, Juan Simón : > I've done it now, thanks. > > 2015-02-11 17:10 GMT+01:00 Kai Stian Olstad : > >> On Wednesday 11. February 2015 09:43:26 Juan Simón wrote: >> > I ha

Re: [lftp] Handling for small files

2015-02-24 Thread Alexander Lukyanov
Which protocol do you use? вт, 24 февр. 2015, 13:48, akshay gupta : > Hi, > > I am trying to transfer about 80GB of data using mirror option. File sizes > are very small about 0.5 KB to 3 KB per file. Transfer is taking a lot of > time which I am attributing to small file size. Is there any optio

Re: [lftp] [LFTP] https_proxy

2015-03-03 Thread Alexander Lukyanov
Please turn on debug in lftp (command debug) and send me the output пн, 2 марта 2015, 12:56, Vincent Lasselin : > Hi Alexander, > > I've provided user and password with the https:proxy. But it's not > working. > It's working very well with the http:proxy variable if I try to access > some http we

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

2015-05-13 Thread Alexander Lukyanov
There should be no limitations. Please produce a stack trace and send it to me. ср, 13 мая 2015, 18:34, Ankit Khurana : > > Hi, > > I am trying to mirror files using lftp, the mirror path contains around 1 > million files. > > The problem i am facing is that when i start the mirror, it attempts t

Re: [lftp] Insert current working directory at local in prompt

2015-08-19 Thread Alexander Lukyanov
I think it can be made possible with a new readline key bindings. Which key combination do you suggest? вт, 18 авг. 2015, 12:35, Juan Simón : > Is there any way to insert current working directory at local in prompt? > Regards. > ___ > lftp mailing list

Re: [lftp] lftp 4.6.4

2015-08-21 Thread Alexander Lukyanov
Sorry about that. I'll update the man page in the next version. 2015-08-21 17:03 GMT+03:00 Juan Simón : > Thanks. You forgot update the man file with new prompt option \l > Regards. > > 2015-08-21 15:43 GMT+02:00 Alexander V. Lukyanov : > >> lftp-4.6.4 has been released. Changes: >> >> Version 4.

Re: [lftp] mirroring directory top folder?

2015-11-19 Thread Alexander Lukyanov
lftp uses encrypted connection automatically when it is available. The need to set ssl:verify-certificate arises because of an invalid server certificate. The connection is still encrypted, but not as secure as it could be (man in the middle attack may be possible). If you do not control the server

Re: [lftp] UTF-8 output

2016-01-07 Thread Alexander Lukyanov
Probably you run lftp with a latin-1 locale. Try to set LC_ALL=en_US.UTF-8 (for example). Alternatively you can force a local character set in lftp by "set file:charset UTF-8". 2016-01-07 20:04 GMT+03:00 Phyks : > Hi, > > I am using lftp from a Python script, calling it through > `subprocess.run`

Re: [lftp] UTF-8 output

2016-01-07 Thread Alexander Lukyanov
="fr_FR.UTF-8" > LC_NAME="fr_FR.UTF-8" > LC_ADDRESS="fr_FR.UTF-8" > LC_TELEPHONE="fr_FR.UTF-8" > LC_MEASUREMENT="fr_FR.UTF-8" > LC_IDENTIFICATION="fr_FR.UTF-8" > LC_ALL= > ``` > > Which should be ok AFAIK, no? > >

Re: [lftp] UTF-8 output

2016-01-10 Thread Alexander Lukyanov
r to use > > UTF-8 (which seems to be confirmed by the `ftp:charset` and > > `file:charset` options). > > > > I do not have any problems using either directly Filezilla or lftp > > because I guess they (or the shell) handles encoding conversion. > > > > Thanks &

Re: [lftp] D/L files that are 24hr old?

2016-02-20 Thread Alexander Lukyanov
Lftp tries to get the file modification time in UTC. So the comparison does not depend on the server's timezone. Sometimes it fails due to ftp server limitations or bugs вс, 21 февр. 2016, 8:03, Steven Dennis : > Thanks for the help. I was able to use the --newer-than, but now I am > wondering h

Re: [lftp] Excluding list of files?

2016-03-10 Thread Alexander Lukyanov
Is it better to list file patterns in the file or plain file paths? вт, 1 марта 2016, 7:56 Steven Dennis : > Hello, > > I want to create a list of all the files that lftp has d/l to my local > computer and then use that list to have the next run exclude them from > being d/l again. I cannot find

Re: [lftp] lftp results in corrupted files with one https server

2016-04-18 Thread Alexander Lukyanov
lftp decompresses the file if the server has indicated that it compressed the file for transfer by the "Content-Encoding: gzip" header. Upgrade lftp to avoid the problem. пт, 15 апр. 2016 г. в 23:52, Jethro Tull : > > > > > From: Alexander V. Lukyanov > >

Re: [lftp] (no subject)

2016-04-23 Thread Alexander Lukyanov
Please turn on debug and see the ftp protocol details, it may shed some light. сб, 23 апр. 2016 г. в 17:28, Juan Simón : > With lftp v4.6.5 is fails too. The curious thing is that it works well for > a while at start. I've tested with pget and same problem. > I have defined in config file: > ...

Re: [lftp] http authentication on lftp 4.7.x versions

2016-05-04 Thread Alexander Lukyanov
Please send me the debug output. In 4.7.0 the http authentication was reworked, so there can be a bug indeed. пн, 2 мая 2016 г. в 13:20, Frederico Costa : > Hi there, > > I have been using lftp for some years now, and has been working smoothly > i can say. > > Now i have upgrade to version 4.7.1,

Re: [lftp] download speed drops sharply

2016-05-04 Thread Alexander Lukyanov
Can you please try "set ftp:prefer-epsv no"? пт, 29 апр. 2016 г. в 19:22, Juan Simón : > I think the problem isn't in lftp. > I see messages like this when I execute "jobs -v" to see active transfers: > "[500 I won't open a connection to 192.168.1.2 (only to > )]", ¿? > I didn't see this message

Re: [lftp] lftp not removing files from local directory

2016-05-16 Thread Alexander Lukyanov
I don't see the --delete option in your command line. пн, 16 мая 2016, 19:30 Steven Dennis : > 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

Re: [lftp] lftp not removing files from local directory

2016-05-16 Thread Alexander Lukyanov
Also --newer-than limits the file sets on the target side too, so older files won't be deleted. вт, 17 мая 2016, 9:31 Alexander Lukyanov : > I don't see the --delete option in your command line. > > пн, 16 мая 2016, 19:30 Steven Dennis : > >> Hello everyone, >>

Re: [lftp] lftp not removing files from local directory

2016-05-18 Thread Alexander Lukyanov
and >> > where should I put it to delete files on the target side when not on the >> > remote side? >> >> I don't see -e either. >> >> I was wrong about --newer-than option, it should not limit files to be >> removed. >> Add -vvv options to s

Re: [lftp] SFTP with certificate

2016-06-04 Thread Alexander Lukyanov
You have to specify a password anyway, just an empty one. сб, 4 июня 2016, 22:29 Juan Simón : > Hi, > I connect to a remote server with a certificate (without password) but > when I try to connect via lftp, it asks for my password, why? > > I have defined "set sftp:auto-confirm yes" in config fil

Re: [lftp] SFTP with certificate

2016-06-05 Thread Alexander Lukyanov
t; Escrito desde el móvil > El 5 jun. 2016 8:33 AM, "Alexander Lukyanov" escribió: > >> You have to specify a password anyway, just an empty one. >> >> сб, 4 июня 2016, 22:29 Juan Simón : >> >>> Hi, >>> I connect to a remote server with a ce

Re: [lftp] SFTP with certificate

2016-06-05 Thread Alexander Lukyanov
What kind of a security problem is it? Lftp has to have the password to be able to restart the connection if it eventually breaks, it's one of lftp advantages. To skip the password question, specify an empty password in the URL. Like this: lftp sftp://user:@host.example.com вс, 5 июня 2016,

Re: [lftp] removing stale socket

2016-07-13 Thread Alexander Lukyanov
The message means that lftp has found a socket on which no other lftp listens ср, 13 июля 2016, 17:50 Juan Simón : > Juan Cole, I sent that message to the lftp mailing list. It has nothing to > do with your blog, comments, etc. It's a message that lftp shows when I > attach to lftp background ses

Re: [lftp] file with an ampersand in the filename

2016-08-05 Thread Alexander Lukyanov
Use quotation marks or a backslash чт, 4 авг. 2016, 20:17 McNierney.Mike : > How do I put a file with an ampersand in the filename via lftp? > > > > command: put > /stage_area/wrss/audit302/Audit302_TRAVEL_&_LEISURE_APR_16_2016_01_15_10_20.txt.zip > -o /Audit302_TRAVEL_&_LEISURE_APR_16_2016_01_15

Re: [lftp] Make certificate verification great again

2017-03-11 Thread Alexander Lukyanov
Your understanding of CA is correct. The Comodo certificate should be present in the CA bundle for the verification to succeed. вс, 12 марта 2017, 5:16 Nathanaël Naeri : > I'm trying to connect to a FTP server that supports explicit FTPS > using TLS, but I can't get certificate verification worki

Re: [lftp] Make certificate verification great again

2017-03-20 Thread Alexander Lukyanov
Does the "Not trusted" error happen just after connecting or when doing the data connection? Can you provide at least the server name? пн, 20 мар. 2017 г. в 16:55, Nathanaël Naeri : > It appears that "open -d https://www.seedbox.fr"; works indeed > ("Trusted", certificate chain printed out as in

Re: [lftp] log files

2017-03-26 Thread Alexander Lukyanov
Yes, there are these settings: cmd:save-cwd-history cmd:save-rl-history log:enable сб, 25 мар. 2017 г. в 14:04, Juan Simón : > Hi, > Is there any setting or way to disable some logs like "log", > "cwd_history", "rl_history"? > Regards. > ___

Re: [lftp] Mirror only directories -- skipping all files

2017-04-21 Thread Alexander Lukyanov
Try mirror -X * пт, 21 апр. 2017, 15:38 Alan Steel : > Can you please tell me the easiest way to mirror only directories (no > files), from a local server to a remote FTP host? > > > > Thank you! > ___ > lftp mailing list > lftp@uniyar.ac.ru > http://un

Re: [lftp] Problem parsing list output : no automatic mirror nor browse is possible

2017-05-11 Thread Alexander Lukyanov
I'll add a workaround. Thanks for the report! чт, 11 мая 2017, 19:58 Franck Eyraud : > Hello, > > I have the problem with a FTP server, mirroring is not taking into account > any folder for recursion. I think I noticed why: when running ls command, > all folders are suffixed with a slash, this do

Re: [lftp] How to only show file URLs?

2017-05-30 Thread Alexander Lukyanov
Try "nlist" command. "cls" can also be useful. вт, 30 мая 2017 г. в 1:18, Peng Yu : > Hi, The following command shows attributes besides file names. Is > there a way to let lftp only print file names or the complete URLs? > Thanks. > > $ lftp ftp://ftp.ncbi.nlm.nih.gov:21/blast/db/ -e 'ls > refse

Re: [lftp] Review of script for syncing HostedFTP and local server

2017-06-01 Thread Alexander Lukyanov
The --include-glob options look incorrect. They should not be given an absolute path, but rather a relative one. Even more, the glob pattern is matched against just a few last path components (separated by slashes), depending on the number of slashes in the pattern. The regex patterns are different

Re: [lftp] Mirror: Access Failed ... No such file or directory

2017-06-27 Thread Alexander Lukyanov
The first directory on the mirror command line is the source, the second is the destination. With -R the source is local and the target is remote. So in your case you have to change the argument order. пт, 21 апр. 2017, 18:35 Alan Steel : > We are trying to replicate a local server directory stru

Re: [lftp] Error (?) uploading

2017-07-14 Thread Alexander Lukyanov
You can add --no-perms option to mirror to avoid chmod operations. пт, 14 июля 2017, 22:02 Gianni Piccini : > While uploading files to a Synology nas, with a bash script that call a > function like this > > lftp -f " > open $HOST > user $USER $PASS > lcd $SOURCEFOLDER > mirror --reverse --delete

Re: [lftp] torrent sharing

2017-09-17 Thread Alexander Lukyanov
Try "jobs -vv" to see the peer status. On пт, 15 сент. 2017, 8:15 Stu Midgley wrote: > OK... getting further along. It turns out that I had to delete the lftp > cache so that the nodes didn't all have the same node_id (from ip address > 127.0.0.1). > > I now > * remove the tests for 172.16 ip

Re: [lftp] [Build-Failed] on ubuntu 14.04

2017-09-17 Thread Alexander Lukyanov
You can install ncurses-devel package for a workaround, but I have to fix compilation with termcap. On сб, 16 сент. 2017, 23:52 Yubin Ruan wrote: > Hi lftp developer, > > I try to build lftp 4.7.4 ~ 4.7.7 on my Ubuntu 14.04 but it always fail > with a weird message: > > $ make > /bin/bash ../lib

Re: [lftp] lftp to mainframe: ls/get fails with \"No data sets found\" though Sun ftp works

2017-09-17 Thread Alexander Lukyanov
As I remember, sun's ftp uses NLST command by default. You can try "nlist" command in lftp for that. If it still doesn't work, please send me debug from sun's ftp with protocol commands and responses. On сб, 16 сент. 2017, 23:53 Franklin Issac wrote: > Hi - i think i deleted an email from lftp f

Re: [lftp] LFTP manpages on OSX are busted

2017-09-17 Thread Alexander Lukyanov
Unfortunately I am not an expert in nroff or tbl either. I usually just add information to the man page by analogy with the old text. On сб, 16 сент. 2017, 23:53 Nate Sutton wrote: > On lftp 4.8.0 installed via homebrew on OSX 10.11.6, I get a bunch of > errors trying to load the manpage and I t

Re: [lftp] torrent sharing

2017-09-17 Thread Alexander Lukyanov
ite some time (10+ minutes) clients > suddenly start downloading the files and also seeding. BUT it takes over > 10 minutes to get into that state. I feel their is a critical thread > somewhere stuck and it eventually timeouts. > > Thanks > Stuart. > > > > > On Sun, Se

Re: [lftp] torrent sharing

2017-09-17 Thread Alexander Lukyanov
I need the full debug from the server an a client with timestamps (use debug -t). On пн, 18 сент. 2017, 6:28 Alexander Lukyanov wrote: > You can run the torrent in background to enter other commands. And BTW > lftp doesn't use threads. > > On пн, 18 сент. 2017, 6:20 S

Re: [lftp] Scripting and Attach

2017-12-10 Thread Alexander Lukyanov
I think you have to feed the commands to lftp from the stdin. Like this: echo queue get ... | lftp -c "attach 1234" The commands after attach command in your script are executed after the attach is finished (detached). вс, 10 дек. 2017, 12:00 Tim : > I'm trying to automate LFTP activity fro

Re: [lftp] Certificate validation confusion

2018-03-18 Thread Alexander Lukyanov
Yes, that would be good. пт, 16 мар. 2018 г. в 10:08, Manfred Lotz : > On Thu, 15 Mar 2018 21:58:17 + > Alexander Lukyanov wrote: > > > I think the name of your certificate was recognized as a false value. > > The ssl:verify-certificate setting expacts a boolean value

Re: [lftp] Query on LFTP

2018-07-31 Thread Alexander Lukyanov
Yes, you can do that. Try "cat file >> local-file" пн, 16 июля 2018, 15:40 Valliappan, Ramanathan (R.R.) : > Hi, > > > > I have a query about the usage of LFTP. > > > > Is there a possibility to use LFTP to append a file? I mean we should not > overwrite it, but just append the content. > > > > I

Re: [lftp] push of new website, while retaining backup

2018-08-12 Thread Alexander Lukyanov
Renaming a directory should be the fastest operation here, use it if possible. вс, 12 авг. 2018, 20:30 John Kelly : > Hi, > I'm trying to use lftp to push my new angular app to my website from > gitlab, but i first want to take a copy of the current website. Logically > i'm trying to achieve the

Re: [lftp] HTTP Basic Auth

2019-07-03 Thread Alexander Lukyanov
Lftp started to support digest authentication, so it sends an unauthenticated request first to get a challenge. It should be possible to add a setting to choose auth methods, so that when only basic method is enabled, then skip the initial unauthenticated request. чт, 16 мая 2019, 20:58 Nate Sutto

Re: [lftp] lftp issued “CWD /” results in error message but the transfer does not fail

2019-08-24 Thread Alexander Lukyanov
Try adding a tilde at the end of url. пт, 23 авг. 2019, 18:30 Kevin R. Bulgrien : > In a scripted and automated process, it seems beneficial to avoid > generating unwanted error messages that do not indicate an actual > fault, if only to avoid confusion when someone looks at the logs. > > Given a

Re: [lftp] lftp issued “CWD /” results in error message but the transfer does not fail

2019-08-26 Thread Alexander Lukyanov
wever, I feel somewhat > disappointed that I didn't previously think about simply dropping the > trailing slash from the URL. For example: > > ftps://server.example.net vs. ftps://server.example.net/ > > -- > > Kevin R. Bulgrien > > ---