Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
34 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. ...
0
votes
0answers
12 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
32 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 ...
-1
votes
1answer
43 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
42 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
187 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
197 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$ | ...
1
vote
0answers
333 views

LFTP Script to Download files and remember old downloads [closed]

I would like a script that downloads files every x minutes and remember which files it has downloaded. I found this similar question; LFTP Script to Download Files The problem is once the file has ...
2
votes
0answers
249 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
40 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
359 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
307 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 ...
3
votes
0answers
967 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
0answers
70 views

Having trouble running LFTP using cron or apache

I have two AWS servers. One is running Amazon Linux and the other is running Windows Server. The Linux server is a web server. When someone creates an account on my website, the Linux server ...
0
votes
1answer
173 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 ...
0
votes
0answers
92 views

How to get transmission complete state after lftp sync?

I'm downloading the content of a remote ftp with lftp. Question: how can I know if lftp did download any file? Or just existed without downloading anything? Because I want to delete a specific ...
0
votes
1answer
1k 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
656 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
1k 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
302 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
355 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
141 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
514 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
1k 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
1answer
557 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
3k 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
500 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
986 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
442 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
845 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
5k 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
2k 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
123 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
1k 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
2k 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
10k 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
3k 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
5k 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 ...
3
votes
1answer
15k 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
1k 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
3k 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 ...
2
votes
2answers
13k 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://...
1
vote
1answer
928 views

LFTP exclude file extensions

I am trying to mirror directories with lftp but I don't want to download filetypes that are notoriously large like .mp4 and .swf. But I am having trouble with the regex - and seeming like the exclude-...
0
votes
1answer
1k views

How to copy files from one remote server to another (LFTP)

Disclaimer: I have little Linux/sysadmin experience. I am trying to transfer some files to someone else's remote server. The source files are available on my local Windows machine or our own remote ...
7
votes
2answers
3k views

Run LFTP on a list of files

I have a newline-delimited list of paths to files I would like to download via LFTP, from a remote machine to a local machine with the same directory structure. Is there any way that I can pass LFTP ...
4
votes
1answer
9k views

LFTP mirror includes - including other directories other than what I've included

My question: How can I make sure LFTP only includes files AND directories using --include or --include-glob, and not download a bunch of extra directories from the root of the remote that aren't in ...
2
votes
4answers
13k views

Using lftp with ssh-agent

I have a script that logs into sftp server eval `ssh-agent -s` ssh-add /home/<username>/.ssh/id_rsa sftp <username>@<target> This works, but I would like to get only files that are ...
2
votes
4answers
3k views

Download directory from sftp

I want to download directory from sftp to a server.I am able to login to sftp using sftp rob2056@storagename and then can get individual files using : get *.txt /remotedir But I want to ...
0
votes
1answer
2k views

Using 'lftp' as a FTPS (not SFTP) client on SuSE Linux ES 11

I have to configure lftp as a FTPS client to be used on a system with SuSe Linux Enterprise Server 11 SP1 installed on it. For that, I have downloaded lftp-4.6.1 and executed following command in ...
3
votes
1answer
374 views

rsync file copy including files that change

I have to copy files between 2 servers using rsync (the network is slow). Can mirroring/ FXP with lftp be used here? Also there will be a continuous flow of files in the source directory & the ...