Questions tagged [lftp]

lftp is a file transfer program that supports several network protocols.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

lftp copy only directory and not files in it

Hi I have two servers and after download complete,I transfer data from one server to other server, I can only transfer directory but not its contents. lftp -e "set ftp:ssl-protect-data true;set ...
0
votes
1answer
38 views

“find” using LFTP tries to access arguments

I connect via lftp -u username, sftp://server.name.com:/directory to a sftp-server, which works correctly. Anyhow, I want to use find. -name *someWildcardExpression -type f -delete in order to delete ...
0
votes
0answers
125 views

How to mirror a sub-directory with lftp using an exclude-glob file relative to a fixed parent directory?

I'm writing a bash script for some personal usage, which uses lftp to mirror a local directory to a remote host. Suppose the local directory foo has the following structure: foo/ bar1/ ...
0
votes
0answers
49 views

LFTP Mirror Delete EXCEPT?

I'm using lftp to mirror my repository to a ftp server. Now I want to have some other folders on this server as well; I'm not able to create more accounts pointing to subdirs. So I'd like to modify ...
0
votes
0answers
21 views

LFTP gives 404 when trying to mirror

I am trying to mirror http://releases.ubuntu.com/12.04/ to a local directory under Ubuntu 18. I run: $ lftp -c 'mirror --parallel=3 --use-pget-n=10 http://releases.ubuntu.com/12.04/ ;exit' but I get: ...
0
votes
0answers
96 views

How to connect from Google Cloud Run to a sFTP of a client

I have the following problem: I try to download a file from a customer sFTP using the lftp tool on Google Cloud Run. When I try to download the file while running the image locally, everything is ...
1
vote
1answer
173 views

Lftp --newer-than is downloading empty directories

I am trying to use lftp to download only new files files from a remote sftp server to the local server This is what I am doing: lftp sftp://user@remoteserver cd to the directory then: mirror --newer-...
1
vote
0answers
976 views

TLS 1.2 connection with lftp

I'm trying to connect to a server from my RHEL 7 server that only accepts FTPS, TLS 1.2 connections. The only client available seems to be lftp. When I try to connect, it hangs on "TLS negotiation......
1
vote
1answer
1k views

How to log some, but not all, lftp transfers

I have an lftp script file that I use for mirroring some directories over sftp, so I run the command using something like lftp -f mirror_dirs.lftp. I would now like to log the transfers to a specific ...
1
vote
1answer
269 views

Specify key exchange protocol with lftp

I have to download some (large) data from a distant server. The remote IT people suggest using lftp sftp://user@server.domain:port. However, when I type ls, I read: `ls' at 0 [Unable to negotiate ...
0
votes
0answers
106 views

vsftpd uses TLS1.1 even after disabling

I have disabled TLS1.1 and SSLv3 in my vsftpd.conf ssl_tlsv1_1=NO ssl_tlsv1_2=YES ssl_tlsv1=NO ssl_sslv2=NO ssl_sslv3=NO ssl_ciphers=DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-DSS-AES128-...
0
votes
1answer
2k views

lftp behind firewall – what ports need to be opened?

I need to setup a secure file transfer from Linux client to z/OS ftp server using TLS 1.2 secure protocol. I am trying to use the lftp client for this purpose. My Linux server is behind a firewall. I ...
0
votes
1answer
491 views

A way to stop lftp from issuing “CWD /” when transferring a file

Given an lftp command similar to the following: lftp -vv -d -c set ssl:ca-file /path/to/cert/ftps_cron-bundle.crt; set ssl:check-hostname no; set ftp:ssl-protect-data true; set sftp:connect-program "...
1
vote
2answers
1k views

trust server certificate with lftp

When connecting to a server with lftp, I have the following issue: Certificate verification: Not trusted: no issuer was found (AA:AA:AA:[...]:AA:AA) Which indicates at least that the cert ...
1
vote
5answers
641 views

How to copy millions files from dedicated server to AWS EC2? [closed]

I have a website that needs to move from a dedicated server to AWS EC2 instance. I have 650GB+ data and 3+ million files. I tried using SCP like this but because of huge file it taking so much time. ...
3
votes
3answers
989 views

Does LFTP support keepalive for FTP/SFTP?

In the documentation it's not clear whether lftp support keepalive for FTP and SFTP protocols. Does someone know the answer?
2
votes
1answer
938 views

How do I specify an MVS data set name when using lftp?

We have a Linux server that needs to send a file to a z/OS mainframe using FTPS. How do we specify the MVS data set name we want to create? When we try to FTP the file, it always prepends the ...
0
votes
0answers
730 views

Simple Command for Cron Job that will FTPS a Text File to Remote Server

I am trying to have a text file moved routinely from our server to a remote server. The remote server requires ftps protocol and our servers IP address to be whitelisted (which I have done). The best ...
0
votes
0answers
284 views

best way to backup data to a sftp server

In my projects, I have work on a 800 GB of data (that includes data and codes). Some part of my data is constituted by somewhat large files, ~1GB, but I have also some folder with thousands of small ...
3
votes
1answer
920 views

How to disable Lftp chmod permissions warning?

I use this script (launching lftp with some options) to mirror a local folder and a website. #!/bin/bash HOST="myhost.com" USER="user" PASS="xxxxxx" lftp -c "set ftp:list-options -a; set cmd:fail-...
0
votes
1answer
160 views

Prefixing protocol for address in ssh and lftp

I'm using ssh to connect to my remote server. I'm able to do so fine using the regular SSH commands, but using lftp to connect requires prepending sftp:// to the address for it to work. What's the ...
3
votes
0answers
558 views

Resuming segmented file transfer

When I run an lftp command like this: mirror --use-pget-n=10 "My Directory" sometimes I find myself in a situation, that the computer was unexpectedly shutdown, say, during a blackout. After that, ...
3
votes
0answers
541 views

lftp mirror -I and mirror -i don't work

I am using the following command lines to mirror a remote server to my local directory: $ lftp -d -c 'open -e "mirror -i ^ABC . mirrordir/" http://ftp.abc.com/dir1/dir2' $ lftp -d -c 'open -e "...
0
votes
1answer
219 views

Received time of file in Linux

I'm sending a file from one server to another via lftp. Suppose S1 and S2 is two server. A file file1 is created at S1 at Mar 27 19:41. ls -ltrh shows it. I sent the file to S2 at Mar 28 20:00 ...
3
votes
1answer
326 views

lftp: bash equivalent of command substitution backticks or $()

Is it possible to use bash-like command substitution, like backticks `` or $() with lftp? This is to e.g. cd into a directory given by a command: lftp .. cd `pwd`
2
votes
1answer
769 views

Add time offset for mirroring via lftp

I am working on a CI runner in GitLab which is supposed to transfer changed files via FTP to a development environment. lftp seemed to be a good solution for doing so as it's easy to use and not ...
1
vote
0answers
326 views

lftp bi directional syncing

How to sync directories on two different machines? If I change/add/delete a file on the windows machine, it should be changed/added/deleted on the linux machine and vice versa. I have to use lftp to ...
1
vote
0answers
508 views

Downloading large file via SFTP timeout

I've been trying to download a 3GB file from an SFTP server. However, I keep getting timeout. Downloading a smaller size file works without issue. I tried in different workstations and servers as well ...
1
vote
0answers
535 views

lftp miror does not remove extra files

I'm trying to mirror remote ftp to local dir: lftp -u 'user','pass' -e 'mirror -vv ./wp-content ./ && ex' sftp://x.x.x.x -p 22 Old file `cache/index-https-mobile.html' is not removed Old ...
1
vote
2answers
869 views

lftp: where are bookmarks stored on debian jessie?

Bookmarks are saved but I get an empty (new file) when I run bookmark edit inside lftp and I don't have any ~/.lftp/bookmarks file. For information, I add bookmarks like this: $ lftp sftp://username@...
0
votes
1answer
165 views

Recommended file extension for Linux 'lftp' scripts?

lftp allows to execute commands from the script file by using -f option (as described on man page), e.g. lftp -f my-lftp-script-file Is there any file extension that is recommended (or just widely ...
2
votes
0answers
241 views

Retrieving from ftp dirs with wildcards

What is the most efficient way to retrieve all relevant data from ftp if the address of said data can be specified with wildcards as below: ftp://ftp.some.site.gov/data/directory/only/*/these/*/*...
1
vote
1answer
1k views

Working with LFTP, find and -exec option throws error

What is wrong with the following lftp command? There files on server. I am trying to get their names without any path in it (like ./) Just file names. lftp -u user,password -e 'find -exec basename {} ...
0
votes
1answer
495 views

All Time Lftp Mirroring

How to make lftp run in background all time and push any change made to a local folder to a folder on remote server. The normal reverse mirror command isn't working for all time and specific to ...
0
votes
1answer
708 views

How do I attach running lftp process

I have lftp process running for days at a time on a CentOS machine. I read the lftp man pages and discovered the attach command. However when I call it with the respective process id from the lftp ...
-1
votes
1answer
114 views

Automatically lcd to ~/Downloads on every lftp connect

How can I configure lftp to automatically lcd to ~/Downloads whenever I connect to any FTP server?
1
vote
1answer
758 views

How can I permanently disable directory caching in lftp?

I attempted to configure my $HOME/.lftp.rc to permanently disable directory caching (it has a nasty habit of never bloody updating). https://raw.githubusercontent.com/mcandre/dotfiles/master/.lftp.rc ...
1
vote
0answers
1k views

lftp mirror mode over hftp/proxy not working

When I connect lftp over an http proxy using hftp and try to use mirror mode, no files are transferred. dir and get work fine. Mirror mode works fine when I connect directly. Here is the script I ...
1
vote
1answer
1k views

shell script file (.sh) - dynamic command

I'm trying to build a dynamic command to execute in an .sh file, however, when I do it, it seems that somehow it adds \r characters so command is not correctly executed. Notice that I'm running this ...
1
vote
1answer
3k views

Connection to Microsoft FTP server hangs when transferring thousands of files

I am seeing that some ftp clients cannot complete when transferring thousands of files to an FTP server. The mput * command runs for several hours and then hangs in 150 Opening BINARY mode data ...
-1
votes
1answer
505 views

bash script with lftp with redirected input

I need lftp to connect to a list of hosts from a list file which are in IP address format. Then, if a ftp server is up, log that address (and if possible, device type, in this case routers) to a text ...
0
votes
2answers
152 views

Move files from one server directly to another server without writing to PC disk

Forgive me if I word this Poorly. I'm working with a Linux desktop and several ESXi hosts. Lets name my desktop Desk-1 and the ESXi hosts ESXi-1 and ESXi-2 for simplicity's sake. I'd like to move ...
7
votes
1answer
12k views

How to enable lftp protocol logging?

We are trying to get lftp to log all its protocol commands (during the login). I see several verbose options in the man page but the all have to do with a specific command issued after logging in (...