Skip to main content

Questions tagged [lftp]

lftp is a file transfer program that supports several network protocols.

3 votes
1 answer
2k views

How to disable Lftp chmod permissions warning?

I use this script (launching lftp with some options) to mirror a local folder and a website. #!/bin/bash HOST="myhost.com" USER="user" PASS="xxxxxx" lftp -c "set ftp:list-options -a; set cmd:fail-...
ppr's user avatar
  • 143
0 votes
1 answer
357 views

Prefixing protocol for address in ssh and lftp

I'm using ssh to connect to my remote server. I'm able to do so fine using the regular SSH commands, but using lftp to connect requires prepending sftp:// to the address for it to work. What's the ...
shem's user avatar
  • 1
4 votes
0 answers
901 views

Resuming segmented file transfer

When I run an lftp command like this: mirror --use-pget-n=10 "My Directory" sometimes I find myself in a situation, that the computer was unexpectedly shutdown, say, during a blackout. After that, ...
Andrew Savinykh's user avatar
3 votes
0 answers
821 views

lftp mirror -I and mirror -i don't work

I am using the following command lines to mirror a remote server to my local directory: $ lftp -d -c 'open -e "mirror -i ^ABC . mirrordir/" http://ftp.abc.com/dir1/dir2' $ lftp -d -c 'open -e "...
Ankur Agarwal's user avatar
0 votes
1 answer
235 views

Received time of file in Linux

I'm sending a file from one server to another via lftp. Suppose S1 and S2 is two server. A file file1 is created at S1 at Mar 27 19:41. ls -ltrh shows it. I sent the file to S2 at Mar 28 20:00 ...
Milon Sarker's user avatar
3 votes
1 answer
443 views

lftp: bash equivalent of command substitution backticks or $()

Is it possible to use bash-like command substitution, like backticks `` or $() with lftp? This is to e.g. cd into a directory given by a command: lftp .. cd `pwd`
gauteh's user avatar
  • 133
2 votes
1 answer
1k views

Add time offset for mirroring via lftp

I am working on a CI runner in GitLab which is supposed to transfer changed files via FTP to a development environment. lftp seemed to be a good solution for doing so as it's easy to use and not ...
flomei's user avatar
  • 121
1 vote
0 answers
394 views

lftp bi directional syncing

How to sync directories on two different machines? If I change/add/delete a file on the windows machine, it should be changed/added/deleted on the linux machine and vice versa. I have to use lftp to ...
stackunderflow's user avatar
1 vote
0 answers
745 views

Downloading large file via SFTP timeout

I've been trying to download a 3GB file from an SFTP server. However, I keep getting timeout. Downloading a smaller size file works without issue. I tried in different workstations and servers as well ...
drum's user avatar
  • 689
2 votes
0 answers
638 views

lftp miror does not remove extra files

I'm trying to mirror remote ftp to local dir: lftp -u 'user','pass' -e 'mirror -vv ./wp-content ./ && ex' sftp://x.x.x.x -p 22 Old file `cache/index-https-mobile.html' is not removed Old ...
Putnik's user avatar
  • 924
1 vote
2 answers
2k views

lftp: where are bookmarks stored on debian jessie?

Bookmarks are saved but I get an empty (new file) when I run bookmark edit inside lftp and I don't have any ~/.lftp/bookmarks file. For information, I add bookmarks like this: $ lftp sftp://username@...
Hub 20xx's user avatar
  • 111
0 votes
1 answer
260 views

Recommended file extension for Linux 'lftp' scripts?

lftp allows to execute commands from the script file by using -f option (as described on man page), e.g. lftp -f my-lftp-script-file Is there any file extension that is recommended (or just widely ...
ppawel's user avatar
  • 101
2 votes
0 answers
280 views

Retrieving from ftp dirs with wildcards

What is the most efficient way to retrieve all relevant data from ftp if the address of said data can be specified with wildcards as below: ftp://ftp.some.site.gov/data/directory/only/*/these/*/*...
5heikki's user avatar
  • 121
1 vote
1 answer
2k views

Working with LFTP, find and -exec option throws error

What is wrong with the following lftp command? There files on server. I am trying to get their names without any path in it (like ./) Just file names. lftp -u user,password -e 'find -exec basename {} ...
user2023507's user avatar
0 votes
1 answer
935 views

All Time Lftp Mirroring

How to make lftp run in background all time and push any change made to a local folder to a folder on remote server. The normal reverse mirror command isn't working for all time and specific to ...
Jatin Luthra's user avatar

15 30 50 per page