On Thu, Jun 02, 2005 at 01:56:43PM +0300, viktors zeljenovs wrote:
> lftp -e 'o hftp://ftp.stacken.kth.se/pub/OpenBSD \
> && mirror --delete --verbose \
> -x "3." -x "2." -x README -x cvs \
> -x snapshots -x distfiles && quit'
> --------------------------------
> the problem is, that it doesnt mirror although
> anything what starts with 2. and 3.x in subdirectories,
> for example
> ftp.stacken.kth.se/pub/OpenBSD/OpenSSH/openbsd27_3.1.patch etc.
-x option takes a regular expression as argument. So you have to write:
-x "(^|/)[23]\."
or use -X option, which takes wildcard argument:
-X "3.*/"
Note that for -X and -I option a trailing slash is required to match
directories.
--
Alexander.