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
0
votes
0 answers

Having trouble with LFTP. Socket error when Connecting to Firezilla

I have a bash script that I am trying to run on my hostgator account. cd $HOMEDIR dir="$(date +'%a')" # Upload backups (5 tries) i=0 while [ $i -le 5 ]; do # We're running this more than once so it's advised to use -E to delete the # original…
0
votes
1 answer

Output LFTP result to variable

How do I save LFTP result in a variable so I can use it later in my script. This is the basic command I have: lftp -c 'open -e "mirror /path/to/remote /path/to/local/" ftp://username:password@ftp.domain.com:21' This obviously this doesn't…
Cudos
  • 5,733
  • 11
  • 50
  • 77
0
votes
1 answer

Log file to confirm SFTP Upload

I am accessing a SFTP via LFTP using the script below. It runs from cron at 4/11/16/23. For some unknown reason at unknown intervals I am getting failures. How can print a log file that will confirm ls -l for the file I am uploading? I am hoping…
Dan K
  • 25
  • 6
0
votes
2 answers

Extract files with lftp and iterate over the extracted files

I am using lftp to extract some CSV data files from a FTP-server, with the following command: lftp -e 'set ftp:use-mdtm false; set ftp:timezone Europe/Berlin; mirror --newer-than=now-1days --no-recursion --verbose -i "INERGIA.*\.csv" /…
0
votes
1 answer

How to use lftp to transfer segmented files?

I want to transfer a file from my server to another.The network between these servers isn't very well,so I want to use lftp to speed up.My script is like this: lftp -u user,password -e "set sftp:connect-program 'ssh -a -x -i /key'; mirror…
sunny
  • 1
0
votes
1 answer

lftp - restart position

When trying to mirror using lftp I receive the following output (-d debugging mode): <--- 227 Entering Passive Mode {some numbers} ---- Connecting data socket to (more numbers and port) ---- Data connection established ---> REST 0 <--- 350 Restart…
econ
  • 547
  • 7
  • 22
0
votes
1 answer

Shell - LFTP - multiple extensions

I have been trying to find a way to use mget with only certain file extensions. I have used following command (which works just fine if I leave *.csv) lftp -e "set xfer:clobber true;mget $SOURCE_DIR*.{csv,txt,xls,xlsx,zip,rar};exit" -u…
Moseleyi
  • 2,585
  • 1
  • 24
  • 46
0
votes
1 answer

using lftp to upload to ftp site got 501 Insufficient disk space

I'm new to using ftp and recently i came across this really wired situation. I was trying to upload a file to someone else's ftp site, and i tried to use this command lftp -e "set ftp:passive-mode true; put /dir/to/myfile -o dest_folder/`basename…
user2810081
  • 589
  • 1
  • 8
  • 27
0
votes
2 answers

Correct LFTP command to upload only updated files

I am using codeship.io to upload files in a code repository to a shared hosting without SSH. This is the original command, it tooks two hours to complete: lftp -c "open -u $FTP_USER,$FTP_PASSWORD ftp.mydomain.com; set ssl:verify-certificate no;…
mkto
  • 4,584
  • 5
  • 41
  • 65
0
votes
0 answers

Bash, shell - multiple LFTP commands in one script

I've been trying to solve relatively small problem with moving some files across FTP servers but no luck so far. In a nutshell this is what I'm doing, I have three servers: SourceSFTP TargetSFTP Target_2_SFTP The script is supposed to do the…
Moseleyi
  • 2,585
  • 1
  • 24
  • 46
0
votes
1 answer

List all directories and files recursively from FTP site

I am looking to spider an FTP directory and all inclusive sub-directories and files and write the information to a file. I tried using lftp, but I noticed the site does not support lftp> ls -1R > rammb.txt so now I am trying to figure out the best…
Justin B
  • 15
  • 1
  • 5
0
votes
1 answer

lftp not able to resolve alias value defined in .lftprc file

I have defined aliases in the config file .lftprc as below- alias ftp_server_X 99.999.999.999 From the command prompt when I run lftp -e "open -u user,password 99.999.999.999" it connects to the server. But when I try to use the alias name in the…
0
votes
0 answers

prestashop backup omitting cache folder?

im backing up my prestashop hosting with lftp (I havent got ssh/rsync access) lftp -e "set ftp:ssl-allow off; mirror --only-missing --only-newer public_html /var/www/example.com " -u p,w ftp.example.com can i omit all the cache folders from…
user358360
  • 199
  • 1
  • 1
  • 11
0
votes
1 answer

Transfer files without LFTP hanging

I want to transfer a file using LFTP. Connection Type: Passive connection Implicit SSL Protocol: FTPS Steps followed by me: -bash-4.1$ set ftp:ssl-protect-data true -bash-4.1$ set ftps:initial-prot -bash-4.1$ set ftp:ssl-force true -bash-4.1$ set…
Guy in the chair
  • 1,045
  • 1
  • 13
  • 42
0
votes
2 answers

Sed Regex in Perl Script

Using PERL, I'm trying to login to an FTP server, download all files from a specific directory and then move all these files to another directory on the server. This is my code so far: open( my $LFTP,'|-', "lftp -u $ftpuser,$ftppwd -e open…
r1pster
  • 147
  • 1
  • 12