Questions tagged [lftp]

lftp is a command-line file transfer program for UNIX and Unix-like systems. It started as a FTP client but it also supports FTPS, HTTP, HTTPS, HFTP, FISH, and SFTP. The program also supports FXP and simple BitTorrent protocol support.

Filter by
Sorted by
Tagged with
1
vote
0answers
25 views

File permissions while sending the file from one Linux host to another host

One of the source servers is sending the files to destination servers using lftp. The umask setting in the destination host is 007(in proftpd.conf file), so the files landing in the destination ...
0
votes
0answers
15 views

How can I modify a lftp command so that it copies things inside the A directory to be children of the B directory, not all from the current directory?

Why does this lftp command: mirror -R -v -P=10 --only-newer --exclude-glob=(node_modules|.git|wp-snapshots) ftp://ftp.A.ro/B/tst /D/E/html/* copy all things in the current directory (which contains ...
0
votes
0answers
32 views

How to show a progress bar for lftp script for newer version of lftp in 2020?

I have read this question and its answer, but they do not answer my question. The shell script is this: let total=$(lftp -f lftp-script-count.txt | wc -l)-2 lftp -f lftp-script.txt | while read ...
0
votes
0answers
29 views

“lftp” on RHEL6 fails to connect to vsftpd on RHEL7

I have configured vsftpd on RHEL7 and i am trying to transfer data to it using lftp from RHEL6. lftp seems to fail after sending the PASS command for anonymous login. ---> USER anonymous <--- ...
0
votes
0answers
24 views

lftp can't download files used by another process

I am trying to download logs from azure hosted linux app service. The old logs works nice, but when downloading current log the lftp said: mget: Access failed: 550 The process cannot access the file ...
0
votes
0answers
24 views

lftp overwriting single file over and over again instead of recursively doing whole directory

I am using this command to transfer from my local ubuntu docker container to my ftp : ftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror --reverse --continue -...
0
votes
1answer
39 views

Get remote files by a list preserving their relative paths, and do it on a remote machine

1) I run SSH session on the remote client to get files from the server. 2) There is a server and it keeps a very broad directory structure. 3) I've got a list of thousands path-names to the files ...
0
votes
0answers
347 views

How to run LFTP in a bash script using screen so I can reconnect to the session later while it's running?

I'm having trouble figuring out the right syntax and approach to run a potentially long running LFTP command that is sync'ing files between servers using screen. I want to use screen as it allows me ...
0
votes
0answers
164 views

LFTP not working with TLS

I am trying to connect to an external website using LFTP and am receiving the TLS handshake error. Please see the below logs. Any help would be really appreciated. T [root@usg001 .history]# lftp -e "...
2
votes
1answer
45 views

I have a process (left) that is stuck, and I can't kill it. (kill -9 does not work), what to do?

I have a process that I ran under a Tmux session that I cannot kill. I have tried kill, kill -9, and a few other kill numbers, without it having any effect. I killed the tmux session successfully ...
1
vote
0answers
92 views

LFTP script file arguments

I've got an issue while using LFTP with some script files. lftp -f download.lftp the script looks something like that for now: open -u someurl mirror -i "somefile*.zip" --only-missing ... somehow ...
0
votes
1answer
346 views

Redhat 7 : Where to find LFTP 4.8.3

I have Red Hat 7 on the server and LFTP 4.4.8. I had to use a CentOS RPM to upgrade to LFTP 4.4.8. I need to upgrade to a more recent version because some option are not available in LFTP 4.4.8. ...
1
vote
0answers
417 views

LFTP exclude specific folder only

I have same folder name in different sub-directories, but while mirroring I want to exclude specific folder only. Example : I have directory "123" in different directories ./abc/123/ ./abc/xyz/...
0
votes
1answer
570 views

Unable to connect to remote server using lftp

I'm trying to establish a new ftps connection between two servers, say A and B. Below are the commands I'm using for establishing the connection. I guess i'm able to connect to the remote server but ...
0
votes
1answer
1k views

LFTP - Remove files from remote server while uploading via lftp mirror --reverse

I'm using a shell script which executes lftp mirror --reverse to upload files and directories to a remote server. Just before that it removes everything using glob -a rm -r -f *. The problem is, it is ...
1
vote
1answer
71 views

How to update a local mirror from a public server?

I already have a mirror of the entire slackware64-current/ directory tree using wget -r -np -R "index.html*" https://mirror.slackbuilds.org/slackware/slackware64-current/ and that's fine. But it's ...
0
votes
0answers
497 views

FTPS - LFTP problem

We have some trouble in my company with ftps access with a provider. Here is our configuration: Ubuntu 14.04 LFTP | Version 4.6.3a Our_cert.crt our_key.key provider.crt AuthorityRoot.crt ...
0
votes
1answer
532 views

Can lftp get take in a variable name?

I want to have a script that uses lftp to download a zip file with a variable name. Currently I have the following: open server user user pass set ssl:verify-certificate no ls -ltA1 | grep .zip$ | ...
2
votes
0answers
460 views

lftp mirror error

I have a problem with a script that I am trying to write. Ideally, the script should compress the folders and then send the zipped files to the ftp server creating the folder as the name of the ...
1
vote
0answers
84 views

LFTP: want to make sure I am going to use LFTP correctly

Basically, we had a huge file dump at work and every time I try to copy it over drag and drop style it times out and i have spend a few minutes trying to figure out what/where to copy. So I decided ...
0
votes
1answer
1k views

lftp user credentials do not work with -e or -c

I would like to use lftp to put a file in a remote directory and exit in one command. Following the top answer to this question about this very task, I tried the following: lftp -c "open -u user,pass ...
1
vote
1answer
654 views

Why would an lftp mirror operation slow down over time?

I have CCTV server that is backed up daily to a remote ftp server using an lftp command. The CCTV server saves videos to a new folder each day, the backup runs once a day at 1am, so each backup only ...
4
votes
0answers
2k views

Ubuntu - lftp will not connect to ftps site (Fatal error: gnutls_handshake: An unexpected TLS packet was received.)

I have a specific ftps site that I cannot connect to with lftp. When I attempt to connect I get the error: Fatal error: gnutls_handshake: An unexpected TLS packet was received When I use gnutls-...
0
votes
1answer
272 views

LFTP adds “;type=i” to remote file name

I'm using LFTP version 4.7.8 under cygwin. It automatically adds ";type=i" (or ";type=a" if I do put -a) to remote file name. What's more, mv command does not work : mv: Operation not supported: 501 ...
1
vote
1answer
3k views

Can't use LFTP with SFTP but SFTP clients allow connections

I'm trying to use LFTP (v 4.8.3) to connect to my KVM. This server already allows me to remote execute SSH through terminal and SFTP through FTP client (Transmit app). I want to do this in order to ...
1
vote
1answer
1k views

How to synchronise a specific file to a remote FTP server using lftp?

I'm trying to synchronise one file (among other things) using lftp. Even though the docs say that --file=FILE mirror a single file or globbed group (e.g. ...
0
votes
1answer
2k views

Lftp PASV incorrect?

When connecting to a ftp via terminal, everthing is fine. When using lftp instead, I'm constantly getting timed out and can never sync the folder content. But why? script.sh: lftp -c " debug open $...
0
votes
1answer
455 views

lftp issues with large directory: ls & mv

I have been backing up files from a CCTV camera to an FTP directory without really thinking about it for about 6 months, and inadvertently created a directory with what might be 100,000 files in it. ...
-1
votes
1answer
419 views

ftp multiple files to another server via loop

I try to transfer huge amount(578) of file among of 774 files with ftp. I have the file name which should transfer. the file name format is like : TS_20170818_171102_17.csv and it's not a in same ...
0
votes
1answer
190 views

lftp changes directory size without changing files in directory

i used this code to backup a directory to an ftp mirror -R /media/root/7CBAA4537758FCA/SAVE/DeesBootCD_SlipStreamed2/ /luksftpmnt/put-into-images-folder/DeesBootCD_SlipStreamed2 and it worked well ...
1
vote
0answers
680 views

LFTP --exclude prevents log file creation

Is there a way to use advanced features like --exclude and still keep xfer:log-file "lftpbackup.log" capabilities? I read manual at http://lftp.yar.ru/lftp-man-alt.html also lftp.yar.ru wiki, ...
0
votes
1answer
2k views

Copy specific folders via lftp

I want to copy data using lftp login from server. Here is my command to copy all the data. lftp -u uid,pwd -e 'mirror -c /home/dcr96/TCGA' sftp://rob2056@serapeum2.qib.pbtech This copies the data ...
0
votes
2answers
1k views

Scripting a file move on an FTP Server

I'm attempting to move multiple files on an FTP server to a different directory. So far, I've written a bash script that will login and retrieve any new files in the remote directory but the ftp ...
0
votes
1answer
5k views

Simple question: lftp not writing to $LOG — what am I doing wrong? [closed]

I use a script for work that invokes lftp to mirror a directory: #!/bin/bash HOST='ftp.example.com" USER='pretenduser' PASS='pretendpass' TARGETFOLDER='/home/pretenduser/Dropbox/lftp' SOURCEFOLDER='/...
1
vote
0answers
620 views

lftp logging of removed source files

When I use --remove-source-files when pulling files from a remote server, there is no log of files being removed. In theory, one could assume that as long as you're using --remove-source-files that ...
0
votes
1answer
1k views

How to use lftp to delete old files before downloading new?

I am running lftp on Raspbian I have 100GB of content on the remote site and 100GB space available on my SD card so I need to delete files not present at the remote site from the SD card before ...
1
vote
1answer
615 views

lftp: removes folder prefix while uploading files

I want to upload some files in a local folder to a remote folder thanks to the command line's ftp client lftp. What I want : In my local computer, I do have : me@local $ tree my-site ├── index.html ...
3
votes
1answer
1k views

mv file/folder with blank-spaces in its name doesn't work - LFTP

I have 2 spaces: My Synology NAS. And my FTP. If we assume that some files on my local NAS are also in my FTP repository, I want to move some files on my local NAS AND on my FTP on different folders. ...
1
vote
1answer
6k views

`lftp` does not connect to FTPS (FTP over TLS) server but filezilla and ncftp yes

I have a shared hosted server with FTPS access, and I can connect it trough Filezilla with the following configuration: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <FileZilla3&...
1
vote
1answer
3k views

lftp return code

I have written below code to get listing from a remote server. echo "set xfer:log yes" > batchfile.txt echo "set xfer:log-file Templogfile1.txt">> batchfile.txt echo "open -p $rport -u $...
1
vote
0answers
180 views

After transferring file to another server I want to move source file to another folder is source server using lftp

I was able to transfer files from host server to client server with lftp, but now as per requirement the files from host folder after transferring to client server should be moved to folder say "old" ...
1
vote
1answer
2k views

lftp whiptail progress bar

I am using the following command in a bash script to download files from an ftp server. This command uses the -v option which shows the name of each file being downloaded. /usr/bin/lftp ftp://$...
2
votes
2answers
3k views

Can lftp read netrc for sftp-connections

I am trying to create a script to upload some files to a server via SFTP. I can do that manually by opening an interactive lftp-session and providing username and password there. For the script, I ...
4
votes
1answer
14k views

lftp mirror local directory to remote ftp server without deleting remote files which are missing locally

I have the following command: lftp -e 'mirror -R /local/backups /' -u username,password ftp://FTP_SERVER this works fine, until I started cleaning the /local/backups folder. I'd like to upload new ...
0
votes
1answer
4k views

How can I configure TLS1.1 on LFTP?

I need to configure TLS1.1 for lftp?Also how can I check which version of TLS is running on my Redhat Linux OS ?
-1
votes
2answers
7k views

How to do sftp via password [closed]

I am trying to transfer files via sftp with password mode but getting below message content of file put-script open sftp://user:password@host get /tmp/testftp.txt exit Output: $ lftp -f ...
4
votes
1answer
21k views

LFTP Script to Download Files

I want to write a lftp script that will download files every 15 minutes from a server every x amount of time. Can someone advise how i can do this? Thanks
0
votes
1answer
2k views

Get latest files with lftp

I would like to know if it was possible to download all latest files on an ftp server with lftp without downloading the older files. Examples; On my server I have /doc /vps /order/{id} /order/{id} /...
1
vote
1answer
4k views

bash set variable with colon (:) and dash (-) in it (as used by lftp)

so lftp uses some weird shell variables, like the following: xfer:log-file = 1 sftp:connect-program = “ssh -a -x -i keyfile” how would I set these variables? I've tried using set, and env; as well ...
3
votes
2answers
17k views

`lftp` does not connect to FTPS (ftp over ssl)

I have trouble in connecting lftp with ftps (ftp over ssl, not sftp!) server (FTP Server Ultimate (PRO version).) running on Android phone. Technical details: Linux part. Following : https://...