Tagged Questions

lftp is a command-line FTP client for UNIX and Unix-like systems.

learn more… | top users | synonyms

0
votes
0answers
24 views

lftp mirror leaves empty folders on remote

My script is set up with this for lftp lftp -p 2218 -u $login,$pass sftp://$host << EOF set mirror:use-pget-n 5 mirror -c -P5 --depth-first --Remove-source-files ...
0
votes
0answers
29 views

Mirroring HTTP with LFTP limited session connectivity… is there a faster way?

Limited HTTP connections (3 to be precise). Currently a website is only allowing several connections. The site allows directory listing. But fetching these files using LFTP and multiple threads seems ...
0
votes
2answers
119 views

Use inotifywait and lftp to synchronize servers

I have two servers: Server A (CentOS), where people can upload files to (upload root is /files) Server B (Win 2008), with FileZilla FTP Server (FTP root is C:\content) I want that whenever a file ...
0
votes
1answer
727 views

SFTP: Turn off Pageant to force password instead of public key

I'm trying to SFTP to a server with a username and password supplied to me by a client but I keep getting Disconnected: No supported authentication methods available (server sent: publickey). I'm on ...
0
votes
0answers
41 views

How can I detect if I have access for resource?

I'm trying to write bash script for file copying from local machine to FTP using lftp. Problem is, when someone enter inaccessible path for mkdir or put, then LFTP returns e.g.: Access failed: 550 ...
4
votes
4answers
2k views

How to move a set of files on the same FTP server?

On the remote FTP server, I have a set of files in the directory remote.dir1. I would like to move all the files in that directory to remote.dir2. I am using lftp and was trying something like this: ...
1
vote
0answers
249 views

“Illegal version” error with LFTP

The following command: lftp -c 'open -e "set ftps:initial-prot ""; \ set ftp:ssl-force true; \ set ftp:ssl-protect-data true; \ set ssl:verify-certificate no; \ nlist ; " \ -u "username","password" \ ...
1
vote
2answers
636 views

shell script in crontab, not all output being logged

I've got a simple shell script that runs a few LFTP commands and processes the files. When running straight from bash I get full output of those LFTP commands on screen. When running from crontab ...
3
votes
1answer
1k views

Copying Folder Contents with Subdirectories Over FTP

I have a folder that contains multiple subdirectories. I would like to copy the contents of the folder over ftp (using lftp preferably) instead of the entire folder. When I use the mirror command, it ...
0
votes
1answer
523 views

Lftp: error handling for server down

How can I check if the server is down or any other connection errors while using LFTP and then email once such error has occurred. did something this to make it work. Is this the correct/best ...
8
votes
3answers
9k views

How to avoid lftp Certificate verification error?

I'm trying to get my Pelican blog working. It uses lftp to transfer the actual blog to ones server, but I always get an error: mirror: Fatal error: Certificate verification: subjectAltName does not ...
1
vote
1answer
382 views

“Unknown command `;'. ” when mirroring a Windows Server FTP Site

I have a Windows server running Windows Server 2008 R2. I've set up an FTP site and a user account and I can connect to it and successfully download files using the Windows command-line FTP client ...
2
votes
2answers
2k views

vsftp hangs at “150 Here comes the directory listing.”

In a vsftpd server enviroment, shared various directories from nfs mountpoints, I can log in without problem, but when I send the first "ls", the vsftp give me the directory listing: lftp ...
0
votes
1answer
826 views

How do to white list a specific IP with CSF?

I am using csf & lfd, I am trying to allow all traffic to a specific IP (my backup storage) which I'm using lftp to access. I have tried using csf.allow, but you have to specify a port or a ...
0
votes
2answers
409 views

error when installing lftp

I am attempting to install lftp on centos I use the command; yum install lftp this is the error i am getting: Could not retrieve mirrorlist ...
1
vote
1answer
579 views

lftp ubuntu cannot local directory

open ftp://dfg:fdggdfg@iis502.ixwebhosting.com mirror -v --only-newer --loop /var/ixweb/ /sdf/ I have the following in a file and I call it like this sudo lftp -f /root/ftpyncix the error is the ...
1
vote
1answer
935 views

lftp, setting for ignoring time-stamp?

I am using lftp for mirroring the files on a server to a PC. The problem for me is that as I put a batch of files on the PC that are exactly the same as the ones on the server, the mirroring starts of ...
4
votes
2answers
4k views

What is the syntax of lftp's mirror -x (exclude) option?

I want to mirror a directory using lftp but I want to exclude certain subdirectories. I tried mirror -R -e -x ^\.svn$ /documents/ /test and mirror -R -e -x /^\.svn$/ /documents/ /test but neither ...
3
votes
2answers
8k views

Upload a directory recursively to an FTP server

I am writing a Linux shell script to copy a local directory to a remote server (removing any existing files). Local server: ftp and lftp commands are available, no ncftp or any graphical tools. ...
1
vote
1answer
893 views

lftp cannot connecto to IIS

I can not connect to IIS using lftp as you can see here: <--- 200 Language is now English, UTF-8 encoding. ---> OPTS UTF8 ON <--- 200 OPTS UTF8 command successful - UTF8 encoding now ON. ...
-1
votes
1answer
2k views

How to resolve IP address by host/alias name?

i have shell scripts in my redhat server written by previous administrator, which downloads some files from external FTP servers. lftp -c 'open -e "repeat 10 source getfiles.script" host1' > ...
1
vote
3answers
1k views

uploading to amazon s3 using lftp

Is it possible to upload files from an ftp to an amazon s3 bucket using lftp? I tend to run this from an ec2 instance.
1
vote
1answer
3k views

mget: filename.xlsx: file already existst and xfer:clobber is unset

I am getting this: mget: filename.xlsx: file already existst and xfer:clobber is unset error when I try to download the contents of my ftp server. Basically it is setup using cygwin. We recently ...
1
vote
1answer
300 views

lftp: how to echo an unsupported command to remote server

I am connecting to a remote server that requires that I change my password every 90 days (WS_FTP Pro). The command to do that is "CPWD oldpass newpass". I would like to do it using a script but I ...
3
votes
3answers
10k views

lftp: how to copy file on remote server

How to copy file on remote server using lftp? Moving files is as easy as using mv command, but is there any command equivalent to cp?
3
votes
2answers
7k views

How can I capture output from LFTP? (Output not written to STDOUT or STDERR?)

I would like get access to progress information from lftp. Currently, I'm using curl like so: curl http://example.com/file -o file -L 2> download.log This writes curl's progress information to ...
1
vote
1answer
666 views

Can't connect to server using lftp

I have a lftp file that I want to execute using the following command lftp -f /usr/scripts/fileS.lftp If I run this file I get Delaying before reconnect: Now within this file (fileS.lftp) I have ...