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
1 answer

Read hostname and write it to another script at specefic position?

I wanna make startup script that change 2 lines in another script at startup or maybe not another script but to modify current to do same. Here my current script that i use for ftp mirror. User name must me my hostname and that way i dont need to…
0
votes
1 answer

lftp rolls back the transfer process

i am trying to transfer a 2GB file using lftp, the connection is successful, the tranfer starts, but when it reaches 15% (sometime a bit more, sometime a bit less) it starts all over again, it rolls back to 0% and restarts the process, any idea what…
JBoy
  • 5,398
  • 13
  • 61
  • 101
0
votes
1 answer

LFTP if no connection cancel thread and move on

lftp -u user, password -p 2121 -e 'set net:timeout 10; set net:reconnect-interval-base 1; set net:max-retries 1; mirror -R --use-pget-n=10 -v -c /home/[username]/files/sync/. /' {$v[ip]} I have a script that grabs the ip of everything connected to…
Lilbnyfufu
  • 51
  • 8
0
votes
1 answer

Bash: Loop through file and read substring as argument, execute multiple instances

How it is now I currently have a script running under windows that frequently invokes recursive file trees from a list of servers. I use an AutoIt (job manager) script to execute 30 parallel instances of lftp (still windows), doing this: lftp -e…
turbo
  • 1,233
  • 14
  • 36
0
votes
1 answer

how to use lftp for connecting to a ftps file server and pushing files to their server

we need to connect to one of the FTPS file server and push the files on a hourly basis. We are able to connect to their server using lftp after setting certificate, key files using set ssl:cert-file, ssl:key-file, but need help in sending files to…
GHK
  • 241
  • 1
  • 8
  • 19
0
votes
1 answer

ending nested ifs and for statments

Bit of a script newbie, I have a mistake in my script that needs fresh eyes. I am writing a script that will download multiple directories one only and extract content inside them. The script does this by creating an array and using variables from…
Macburp
  • 1
  • 1
0
votes
1 answer

Setting umask with lftp in bash

I am trying to write a bash script to upload some files using lftp and need to set the umask to 002. I cant seem to figure out how this is done within the context of lftp. lftp -c "open sftp://$STAGE_FTP_HOST user $STAGE_FTP_USER…
Cluke009
  • 63
  • 1
  • 6
0
votes
1 answer

IIS blocking LFTP command

I'm trying to execute a LFTP command using the system() PHP method in a IIS 7.0 site. $command = 'cmd /c lftp -c "open -u name,password -p 22 sftp://server.mylife.com ; cd test/portal/template ; put…
Pete_Gore
  • 594
  • 1
  • 5
  • 20
0
votes
1 answer

Not able use lftp commands running from shellscript

I'm using set of commands from a shellscript. First command is running fine but it is moving to lftp command prompt and expecting manual input instead of running commands from shelscript. Following are the commands i'm using lftp -e "$HOST" lftp -u…
RAVITEJA SATYAVADA
  • 2,503
  • 23
  • 56
  • 88
0
votes
1 answer

How to get specific files with lftp batch file

I'm actually trying to get all files beginning with the current date from another server with SFTP. Nevertheless, * does not work in SFTP so I don't see how I can do... Here is the batch I've done so far: #!/bin/sh today=$(date…
Faquarl
  • 158
  • 1
  • 9
0
votes
1 answer

lftp to read from list of sites and then execute multiple commands

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 file. For the servers that are up, I need it to…
0
votes
1 answer

LFTP - Native library for Java

Is there a client for LFTP written in Java? I need to migrate an existing application using FTP fo LFTP but the restriction is use pure Java. Thanks in advance.
marcello
  • 165
  • 2
  • 9
0
votes
1 answer

Automating password fails when using lftp -u username, passwd

My question is when using lftp to download file from a sftp site with automating password : lftp -e 'set xfer:clobber on; mget -c one_file' -u username,passwd sftp://hostname lftp still prompt "Enter your PASSWORD:" to ask me the password. My…
0
votes
1 answer

shell script with LFTP to get lasted file

I trying to run a script that get a latest file create in my FTP server. file=`ls -t -r | tail -n 1` sudo lftp <
A.Verta
  • 71
  • 1
  • 1
  • 7
0
votes
2 answers

FTP specific files

Can we ftp specific files from a directory. And these specific files that needs to be transferred will be specified in config file. Can we use a for loop once logged into ftp (in a script) for this purpose. Will a normal ftp work when transferring…
Ravi
  • 7,939
  • 14
  • 40
  • 43