Re: Mirror and ASCII transfer selection

Franck Eyraud <[email protected]> Sat, 13 Dec 2014 23:15:40 +0100
Newsgroups gmane.network.lftp.user
Message-ID <[email protected]>
Thank you for your answer.

I know about the size situation, but I don't care much if ascii files 
are untimely downloaded, in this case 99,99% are binary data, the rest 
is some descriptive files that are windows CR/LF formatted (in fact I'm 
anyway using mirror more because it is recursive than incremental since 
I'm downloading a whole bunch of data in an empty destination)

There is already a --ascii option to the mirror command (implies 
--ignore-size), which could be selectively applied to files matching a 
pattern.

In fact, I though afterwards the I could get the desired behaviour by 
running 2 successive mirror commands :
mirror --exclude my_pattern
mirror --include my_pattern --ascii

Franck

Le 13/12/2014 19:13, Alexander Lukyanov a écrit :
> There is no such feature in lftp. I don't think it's feasible to do: 
> ascii mode changes the file and the next mirror will consider the file 
> changed and thus re-transfer it.
>
> 2014-12-12 14:52 GMT+04:00 Franck Eyraud <[email protected] 
> <mailto:[email protected]>>:
>
>     Hi lftp list,
>
>     Just a quick question, because I didn't find in the man page :
>
>     Is it possible to select the transfert type (binary/ascii) based
>     of file name pattern (e.g. download ascii all *.txt files) when
>     mirroring a ftp server ?
>     I remember that I saw this options on some graphical client, so I
>     was wondering for lftp. I checked also the variables, but I didn't
>     find any.
>
>     Thank you for your help,
>
>     Franck
>
>     _______________________________________________
>     lftp mailing list
>     [email protected] <mailto:[email protected]>
>     http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>
>
>
> -- 
>    Alexander.

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp