Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [lftp]

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

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

vsftpd - cannot overwrite file

I recently configured vsftpd in my CentOS machine and i used lftp from another CentOS machine to transfer files. I am able to successfully transfer the files if the file does not exist in the ...
0
votes
0answers
17 views

Compile LFTP from source

When I compile lftp from source, I get below messages on link step: /bin/sh ../libtool --silent --tag=CXX --mode=link g++ -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-...
0
votes
1answer
52 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
56 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 "...
0
votes
0answers
17 views

How can I list absolute paths with lftp?

Currently listing the files inside a target directory recursively by using lftp -e "find;quit" ftp://user:pass@server/PATH/ > output.txt But the listing only consists of relative paths. How can I ...
0
votes
0answers
105 views

lftp - recursive folder copy without server read permissions

I am trying to schedule a regular unattended upload of a directory tree to a remote FTPS (not SFTP) server using lftp. The challenge I am facing is the target server permissions are write only. The ...
1
vote
0answers
263 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
188 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. ...
0
votes
0answers
218 views

Can LFTP search for files by date and delete them?

I have a script which first mirrors a directory and then secondly deletes everything older than a specific date on a remote machine. Momentanely I first 'lftp ... mirror ...' and than 'ssh ... find ......
3
votes
3answers
367 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
377 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
349 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
131 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 ...
2
votes
1answer
424 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
88 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
383 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, ...
2
votes
0answers
415 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
205 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
266 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`
1
vote
1answer
471 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
300 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
399 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
409 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
1answer
543 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
140 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
239 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
898 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
626 views

Keep an lftp connection open while doing other stuff

I there any way to open a connection to an ftp server with lftp, send a command (ls for example), analyze the results and then send another command all without closing the control socket. In other ...
0
votes
1answer
337 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
522 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
87 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?
0
votes
1answer
661 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
840 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
2k 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
480 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
138 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 ...
3
votes
1answer
7k 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 (...