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
Filter by
Sorted by
Tagged with
-1 votes
0 answers
8 views

LFTP mirror Add a limitation or max count

I'm using the LFTP mirror command to download files from a specific directory which contains a lot of files, I need to use the mirror command to download only 100 files each time mirror -v -P -N --...
Secret Santa's user avatar
0 votes
0 answers
8 views

Selective sync using lftp or ncftp

folder_root folder1 folder1.1 folder1.1.2 folder_R5 data1.zip info.txt abc.laz folder2 ...
user24008057's user avatar
0 votes
0 answers
18 views

lftp data connection returns raw ip of the ftps server in passive mode, missing domain information

I am using lftp to communicate with a ftps server in passive mode. All of my certificates have been installed and are working properly. I am able to connect to the ftps server, do cd to change ...
Usman Zahid's user avatar
0 votes
1 answer
32 views

lftp error (550 The volume is too fragmented to complete this operation)

I wrote a bash script to backup my server every day and then lftp the file to another server. I get the following error every few days on some of my servers. This error did not occur on the first file ...
mohammad kazem's user avatar
0 votes
0 answers
112 views

LFTP to mirror and exclude

I'm using LFTP in a script called by PHP, to sync files between my local drive and my webspace using reverse mirror. This works: lftp sftp://user:pass@host-p 22 -e 'set sftp:connect-program "ssh -...
Mark Garlick's user avatar
0 votes
0 answers
97 views

LFTP shell executable not working when trying to mirror (: No such file or directory)

I am having some problems while trying to run a script in my ubuntu terminal with LFTP commands. I want to update a folder from my server to a remote one via FTP. This is my code (.sh): HOST='sftp://...
Leire Martinez de Santos's user avatar
0 votes
0 answers
44 views

Github actions lftp upload fails

I'm attempting to upload two files to a vsftp server using lftp within a github action. One is a txt file of +-70 bytes. The other is a dll of +-20mb. The txt file succeeds to upload but the dll fails ...
Notten's user avatar
  • 3
0 votes
1 answer
255 views

Can't mirror files via lftp in github actions

I am currently working on a GitHub Action to upload changed files onto a server via sftp. For this I have set up a shell script in a docker container. Everything up until the upload works, it connects ...
Luiggi33's user avatar
1 vote
1 answer
256 views

How to unbuffer and capture output of LFTP EOF command?

I have the following command to mirror some files with LFTP: unbuffer lftp $PROTOCOL://$URL -u ${USER},${PASS} << EOF > ${LOGSTDOUT} set dns:fatal-timeout never set sftp:auto-confirm yes set ...
mwsmws22's user avatar
  • 137
0 votes
0 answers
37 views

When a file is missing from the source location, the lftp mv command takes a while. How may this unnecessary delay be avoided?

lftp SPORT -u ${SPID}, ${ServerURL} -e "set ssl:cert-file $SPID_CERT; set sslkey-file $SPID_CERT_KEY; cd /G/reg_service/ mv file1.txt file2.txt /G/reg_service/2023/OTC/ bye:" When file1.txt ...
YOGESH PATIL's user avatar
0 votes
0 answers
79 views

LFTP transfers file successfully in CI job but returns error

I am writing a CI task to copy our build to our deployment server, which is configured by a 3rd party to only support FTP. I've put together the following: deploy: stage: deploy only: refs: ...
otoomey's user avatar
  • 979
0 votes
1 answer
121 views

Get list of files from https and save as txt file

I want to get list of directories from https for aria2c. Since, as I know, unlikely to wget, there is no recurrent option in aria2c, I going to use the txt file as mentioned here So I need the list of ...
Jake's user avatar
  • 55
0 votes
0 answers
208 views

LFTP syncing files between remote ftp and local gitlab repo

Whenever I try to get lftp to download files from my remote ftp server to my local gitlab repo I run the pipeline and everything works ok. I even get Removing file then Transferring file. in debug ...
Holy's user avatar
  • 37
0 votes
1 answer
92 views

Show welcome banner vsftpd with client lftp

I'm configuring vsftpd with vsftpd.conf and I activate the line 106 that say "ftpd_banner=message". later I try to connect to this server with a lftp client with anonymous user and don't ...
j3sc0's user avatar
  • 9
0 votes
3 answers
610 views

Using regular expression in lftp to ignore some strings from file name

Get specific file with name like abc_yyyymmdd_hhmmss.csv from directory using mget. Example files in a folder: abc_20221202_145911.csv abc_20221202_145921.csv abc_20221202_145941.csv ...
likeGreen's user avatar
  • 1,033
1 vote
0 answers
424 views

Problem with lftp command at 0 [Connecting...]

i have problem `ls' at 0 [Connecting...] when lftp -e "set ftp:ssl-allow false;set ftp:use-mlsd on;debug" -u user,pass host . but there are no problems from another host
user19744349's user avatar
1 vote
0 answers
113 views

lftp problem to upload files in runner gitlab-ci,yml

this message return on upload file: $ lftp -c "debug; set ftp:ssl-force true; set ssl:verify-certificate false; open -u $FTP_HOST_DEPLOY_USERNAME,$FTP_HOST_DEPLOY_PASSWORD $FTP_HOST_DEPLOY; ...
Fabrizio Manna's user avatar
-1 votes
1 answer
469 views

Bash script deletes files older than N days using lftp - but does not remove recursive directories and files

I have finally got this script working and it logs on to my remote FTP and removes files in a folder that are older than N days. I cannot however get it to remove recursive directories also. What can ...
user2503303's user avatar
0 votes
1 answer
260 views

How to count file difference between local directory and remote directory using lftp?

I am creating a script where I want to upload files from local directory to remote directory but based on some condition I am calculating the files count and upload the files. So I need file ...
Jayesh's user avatar
  • 3,721
1 vote
0 answers
190 views

FTPS with GitHub Actions output SSL_connect: wrong version number

I am trying to build a GitHub Action that, upon pushing website content on a private repository, deploys the content to a remote web hosting server, through FTP over SSL (the only option available) ...
aretor's user avatar
  • 2,489
2 votes
2 answers
2k views

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 ...
TomCho's user avatar
  • 3,387
0 votes
0 answers
298 views

List directories in localhost using lftp cmd

I'm trying to copy a file to a folder in localhost using lftp command but I'm having troubles executing commands. When I try to list folders in a directory using : !dir; I get the following error : ...
Khalid_Mh's user avatar
1 vote
1 answer
589 views

Deploy a proyect with Gitlab cd/ci and lftp in a server with cpanels

I has been reainding some question and articles before make this question: gitlab ci pipeline failed deploy ftp Use GitLab CI to deploy app with ftp LFTP in gitlab CI: files are not updated on FTP ...
Oskar Calvo's user avatar
0 votes
1 answer
837 views

Check lftp status when executing SFTP from shell script

I am using lftp to connect to SFTP server using the below in a shell script. host=testurl.url.com user=username pass=pass lftp<<EOF open sftp://${host} user ${user} ${pass} cd test/myfolder/ ...
Padfoot123's user avatar
  • 1,077
0 votes
1 answer
160 views

Promisify node-ftps command

Im a trying to promisify a node-ftps function in order to use async/await. I am referring to this github link which explains how it should be done. I came up with the following code but it is still ...
ceessay's user avatar
  • 322
0 votes
1 answer
2k views

skip some subdirectories on lftp

i'm using lftp to download data. my command looks like lftp -u $ftpuser,$ftppass -p 21 $ftpserver -e "set ftp:ssl-allow on; set ssl:check-hostname no; mirror -P $ftpconnections $ftproot $...
Karsten's user avatar
  • 11
0 votes
1 answer
299 views

how to store the values to a variable

I'm try to get the used storage for a ftp server through lftp. lftp :~> open username:password@IP lftp username@IP:~> du 897146 ./volume(sda1) 897146 . I want to get the value of 897146 from ...
BoomRamada's user avatar
0 votes
1 answer
1k views

access failed error - no such file while trying to move files

I am trying to move all the *.csv files to another folder on server but every time i get access failed error , I am able to get all the files to local server using mget but mv fails everytime , i can ...
Kiran V's user avatar
  • 69
0 votes
1 answer
1k views

lftp using input file for command input not working

I'm trying to convert from kermit to lftp. The old script takes the commands from another script for to/from location for the files. I want to still take that input file, but I'm having trouble ...
Michele's user avatar
  • 3,745
0 votes
1 answer
257 views

Append Folder name with current date in LFTP

I am trying to create a directory with current date (like BK-date +"%d%m%Y-%H%M" ) in ftp remote site using LFTP mkdir command, but I am unable to create. please provide some suggestions ...
muralii.nori's user avatar
0 votes
1 answer
736 views

LFTP fails on fast changing directories

LFTP 4.9.2 (Libraries used: Expat 2.2.6, Readline 7.0, zlib 1.2.11) I'm trying to mirror a website with a fast changing cache directory. LFTP always fails with: mirror: Access failed: 550 Can't change ...
Tim Mishutin's user avatar
2 votes
1 answer
6k views

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? ...
thiago lacerda's user avatar
0 votes
1 answer
2k views

Delete files in subdirectories via SFTP without SSH which are older than a week

Context Currently I am pushing data to a SFTP-server which other processes and systems than use for further stuff. All files share a root folder, but they're subdivided into subfolders according to ...
Markus's user avatar
  • 2,345
0 votes
1 answer
505 views

Download files with lftp seems not aware of disk full at my side. How can I fix that?

Using lftp I download files from a remote server (mget -E) to my local server. When my local disk is full, I would think lftp would get an error from the OS (CentOS7) and try later to download or ...
Rob M's user avatar
  • 1
0 votes
1 answer
194 views

lftp handling of negative response to ALLO

I'm using lftp 4.8.4 on Ubuntu 20.4 with my own ftpd server code. As the debug log below shows, in preparation for a transfer lftp sends ALLO but appears to ignore the negative response (452 "no ...
Sean Phelan's user avatar
0 votes
1 answer
137 views

Authentification failed only in non-interactive mode

When using this syntax: lftp [email protected]@domain.net #yes my login is [email protected] ! i can then type my password, connect the ftp server and download any files i want. But then i am in ...
user878812's user avatar
-1 votes
1 answer
199 views

lftp bash script end of file unexpected [duplicate]

I'm trying to put the result in a variable but it didn't work Syntax error: end of file unexpected (expecting ")") #!/bin/bash test="$(lftp -u ns454575.ip-154-145-259.eu,NGFYv85MTI ...
xXxlazharxXx's user avatar
-1 votes
1 answer
494 views

Converting lftp command to curl

I have a very old shell script running on a production machine i just got access to from my customer and my job is to convert it to a curl equivalent. The script is pretty simple and all it does is ...
mbajur's user avatar
  • 4,456
10 votes
3 answers
15k views

lftp error: port 22: no matching host key type found. Their offer: ssh-dss

How do I fix this error, no matching host key type found. Their offer: ssh-dss when doing lftp on a vm with Ubuntu 18.04 installed. I've tried adding Host * PubkeyAcceptedKeyTypes=+ssh-dss to my ~...
pavbagel's user avatar
  • 641
1 vote
1 answer
676 views

sftp equivalent of lftp command returns Permission denied

My task is to port working lftp command to it's sftp equivalent. I have a private key generated at ~/key.key. Working lftp command: lftp -u Username,'pass' xxx.xxx.xx.xx ssl:key-file key.key Not ...
mbajur's user avatar
  • 4,456
2 votes
2 answers
3k views

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 ...
Ontiques's user avatar
0 votes
2 answers
1k views

subprocess with variable for lftp [duplicate]

I'm trying to call subprocess from a python script. Script would call 'lftp' on linux with specific parameters as shown below. The problem as that I can not pass filename (filename will be different ...
admfotad's user avatar
  • 197
1 vote
1 answer
322 views

lftp,stdout, stderr and SAP exec_protocol

We have linux scripts to do SFTP via preshared keys but recently a vendor is requiring the key and a password, I guess it is similar to two factor authentication. So the vendor authenticates with the ...
George Adjei's user avatar
2 votes
0 answers
267 views

Changing lftp log location in the middle of transfer [closed]

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 ...
Majid Pourkashani's user avatar
0 votes
1 answer
2k views

Deploying to FTP server in Github Actions does not work

As the title says, deploying to FTP server isn't working for me from a Github Action. I've tried using a couple of actions to accomplish this (FTP-Deploy and ftp-action), but FTP-Deploy just kept ...
Dinac23's user avatar
  • 224
0 votes
1 answer
433 views

How to run shell commands in lftp to do file transfers?

I need to copy few files from a remote directory which has subdirectories within it. I am using lftp to do that but shell commands inside it aren't working. Is there a workaround for this? Please see ...
FindYourself's user avatar
0 votes
1 answer
144 views

read urls with wildcards from a list and download using lftp

Is there a way to use lftp to download a bunch of files by reading urls from a file? My input looks like this: $ cat urls.txt ftp://ftp.example.com/123*/*.jpg ftp://ftp.example.com/234*/*.png ftp://...
vkkodali's user avatar
  • 660
0 votes
0 answers
1k views

521 PROT P required

I am trying to automate file copy from one machine to other(lftp). Following manual commands work $ lftp $ set ssl:verify-certificate no $ connect ftps://ip $ login username $ it asks for password ...
Karanam Krishna's user avatar
0 votes
1 answer
268 views

Negative pattern match for lftp remove

In a GitHub action, I'd like to remove the old bundle files from the FTP server after deploying the new bundle. To achieve this, I thought to Deploy new bundle Parse the hashes of (main-\*.js, ...
astriffe's user avatar
  • 172
0 votes
0 answers
190 views

using regex anchoring in LFTP

I am using the following regex ^([[:digit:]]+|\-|\_)+.*.xlsx to match e.g. the filename 2020_04_Kontoauszug_67633600.xlsx for a mirror command in LFTP (with option -i). However, this is not working ...
shmail's user avatar
  • 31

1
2 3 4 5