On Wed, 7 Jul 2010, tomatotree wrote:

How to use a skiplist when downloading in FTP SFTP mode?

I'm using LFTP | Version 3.7.3 on a Debian.
I'm very new to lftp. I've been trying to figure out how to enable a skip list for 
ftp & sftp 'downloading'.
I've read the e-mailhere: 
http://www.mail-archive.com/lftp%40uniyar.ac.ru/msg03717.html
Where Justin states "You can add files to your exclude list in $HOME/.lftprc."

What is the code I add on to this file to skip for example a file named 
file_id.diz and any 'directory' that begins with the character [
I've tried a number of variables, such as:
set ftp:exclude "file_id.diz,[*"
-x "file_id.diz,[*"
-x RX "file_id.diz,[*"
--exclude "file_id.diz,[*"
lftp --exclude "file_id.diz,[*"

All do not work, lftp -d:
ftp:exclude: no such variable. Use `set -a' to look at all variables.
ftps:skip: no such variable. Use `set -a' to look at all variables.
ftp:skip-noaccess: no such variable. Use `set -a' to look at all variables.
Unknown command `-x'.
Unknown command `--exclude'.
lftp: unrecognized option `--exclude'

Thank you,
Stephanie



Hi,

You need to include the full regexp.

e.g., per your example:

set mirror:exclude-regex ^.*file_id\.diz.*$

If you want two:

set mirror:exclude-regex ^.*file_id\.diz.*$\|^.file_id\.diz2.*$

And so on, it also supports, e.g.: [fF][iI][lL][eE]

This is probably what you want combined with the examples above.

Justin.

Reply via email to