Questions tagged [lftp]

lftp is a sophisticated terminal-based file transfer program with support for FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols. BitTorrent is also supported.

lftp is a sophisticated terminal-based file retrieval program with support for FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols.

lftp supports background jobs, mirroring sites, and using multiple connections to speed up downloading of large files. If the program is exited while a file transfer is in progress it will automatically put itself into the background to complete any remaining jobs.

241 questions
3
votes
1 answer

lftp can connect, cd, but not ls, or mirror

I'm trying to transfer files away from a Yahoo business hosting account using lftp. I can successfully connect and cd through the directories, but if I try data connection related commands (ls, mirror, etc), it times out with a socket related error.…
drrobotnik
  • 739
  • 1
  • 11
  • 25
3
votes
2 answers

Cannot connect to Yahoo Webhosting using lftp and FTPS from Ubuntu

I'm running Ubuntu 12.10, and I use Yahoo Webhosting, and I also have my own domain "example.com". I used to use FTP to transfer files to/from my webhosting account to update my website. But now Yahoo has just ended support for FTP, and now they…
Steve McMahon
  • 39
  • 1
  • 5
3
votes
2 answers

Logging location of lftp

While using lftp, it will log the file transfer to the ~/.lftp/transfer_log when xfer:log setting is set to "yes". What will happen when there are two instances of lftp running at the same time? Will the log file be mixed up? Is there a way to…
Wei
  • 718
  • 1
  • 6
  • 18
3
votes
2 answers

Continue Processing Bash Script After LFTP

I'd like to use lftp in the beginning of a bash script, but how do I exit lftp without stopping the script from processing? I've tried ending the lftp part with "exit", "quit", and "bye", but they all stop the script. Previously, I split into two…
Nathan
  • 766
  • 2
  • 9
  • 19
3
votes
1 answer

Dynamic command execution with lftp - multiple commands

I'm sure there is a simple way to do this, but I am not finding it. What I want to do is execute a series of commands using lftp, and I want to avoid repeatedly connecting to the server if possible. Basically, I have a file with a list full of ftp…
dgo
  • 3,877
  • 5
  • 34
  • 47
2
votes
2 answers

lftp does not connect to SFTP (even after asking for password)

I've been trying to use lftp over SFTP but I somehow can't get it to connect properly. I issue the command (which as far as I can tell is the same as the one for sftp), lftp prompts me for the password, which I input, and the lftp prompt appears!…
TomCho
  • 3,204
  • 6
  • 32
  • 83
2
votes
1 answer

Download lftp file to a specific local folder

I want to download a specific file to a specific folder on the server using lftp. The problem is that when I download the file, it stays in the root folder. How do I download the file to my home? Example code: host_File=$(lftp -e "open -u…
2
votes
2 answers

Can't connect to a remote FTP server via LFTP on a gitlab public runner

I have a FTP server at Ionos.com which works good with Filezilla. However, when i try to connect to this FTP server via LFTP on a gitlab public runner (node:latest image), i keep on receiving errors depending on what i'm doing : Connecting on port…
Ontiques
  • 31
  • 3
2
votes
0 answers

Changing lftp log location in the middle of transfer

I am trying to tranfer multiple file using lftp 4.4.8 on a centos 7 machine, on a daily basis. For the purpose of monitoring this workflow, I would like to log transferred file into 2 groups (first and second). So I change the log file address in…
2
votes
1 answer

Track LFTP download from the status file

I am invoking lftp command through a python subprocess and in the lftp command using -n flag of pget to set the max connections. Now when the download is in progress, a status file by the name filename.lftp-pget-status gets created and it…
raniphore
  • 386
  • 1
  • 2
  • 9
2
votes
2 answers

Exclude everything staring with dot in lftp mirror command

I'm using LFTP to mirror some Git files to my server from a Docker image using a CI/CD Pipeline vendor. This works as expected but when using the mirror command from LFTP, I need to exclude any kind of file starting with a dot, like so: lftp -u…
Jimmy Adaro
  • 1,325
  • 15
  • 26
2
votes
2 answers

Can we get response in LFTP file transfer through perl

I am new in LFTP and trying to automate my file delivery through perl code using LFTP. I am able to set the proxy server and connect to remote host and also able to successfully transfer the file to remote host using perl code. But I am not able to…
2
votes
1 answer

With LFTP How do I send a specific file to server overwriting if it exists?

I'm building an production site update script using expect and lftp. I'm trying for sometime to do this simple thing: send a file overwriting if it exists. But I just can't find a command that allow me to overwrite destination on put. put -c just…
Nelson Teixeira
  • 6,297
  • 5
  • 36
  • 73
2
votes
3 answers

lftp 550 permission denied

i've tried to create a script that will upload some file to a ftp server using lftp, but without any luck so far. If I used build in ftp command in debian I manage to succsessfully connected and put the file. Here is the debug output from lftp…
Vasil Ivanov
  • 91
  • 1
  • 1
  • 9
2
votes
0 answers

Something blocks lftp from connecting to remote FTP server

I'm running command in Ubuntu 16.04 Server: lftp -c "set net:max-retries 1; set ftp:ssl-allow off; open -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST; ls ./public_html/testing;" (variables are predefined) But all I get is ls ./public_html/testing' at 0…
anton kham
  • 21
  • 3
1 2
3
16 17