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
3
votes
2answers
19k 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://...
2
votes
1answer
1k 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
4k 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
12k 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 ...
5
votes
4answers
19k 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
4k 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
411 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 ...
0
votes
2answers
23k views

how to install a lftp program on centOS

how to install a lftp program on CentOS and use it to transfer files between servers. I used the below command but got an error as bad command. wget http://example.com/user/filename.gz.tar
5
votes
1answer
2k views

LFTP: Mirror to remote except particular file present on remote

I usually edit my website locally and push it with this command: lftp -u user,password host -e "mirror -c -e -R -x ^\.git/$ my /my; exit" But now, my website dynamically appends data to the /my/data ...
6
votes
2answers
12k views

lftp exclude syntax confusion

I am confused with the syntax description given for lftp from their website: -x RX, --exclude=RX exclude matching files -X GP, --exclude-glob=GP exclude matching files How ...
1
vote
2answers
9k views

LFTP mirror upload only non existing files to remote directory

Every 5 minutes some new files are downloaded via lftp to a local directory. I need to upload to another ftp only the non existing files. My script so far is: #! /bin/bash today=$(date +%Y%m%d) ...
4
votes
1answer
3k views

* not interpreted in ftp, lftp?

I'd been seeing that * isn't interpreted on ftp or lftp. Suppose I want to change a directory from current to say ./japan In ftp> of lftp>, if I give: $ cd jap* it would show this error: No such ...
23
votes
3answers
94k views

lftp: login, put file in remote dir and exit in a single command: proper quoting help

I want to use lftp -c to do an entire session in one go (as I'll be launching this from a script later on) and I managed with -e but that ofc leaves me with the interactive session which I don't want. ...
1
vote
2answers
8k views

“lftp” login still possible for “/etc/pam.d/vsftpd” blocked users

I have a ftp server running on the machine 192.168.122.50 Below are the last three directives from /etc/vsftpd/vsftpd.conf file pam_service_name=vsftpd #userlist_enable=YES #userlist_deny=YES Below ...

1
2