Discussion:
lftp mirror how to handle just a few sub dirs ?
smokisalmon
2013-10-10 13:57:28 UTC
Permalink
Hi

I tried now for a couple of hours to mirror a few directories out of a huge one.

there are thousands of files and hunderts of directories with all possible
names.

But I just want to have the directories at /a/b/ which are created in the
last 7 days
--newer-than=now-7days
and which are starting with "BLA.D"followed by at least 4 digest
e.g. /a/b/BLA.D1234
But I need the content of these dirs completly....

Therefore my -include filter was
--include ^/BLA.D[0-9][0-9][0-9][0-9]/.*$


-->
mirror --delete --no-empty-dirs --only-newer --include
^/a/b/BLA.D[0-9][0-9][0-9][0-9] --newer-than=now-7days --verbose=3 ./a/b/
./a/b/

but it doesnt work at all. The result directory is completly empty.

What I did wrong ?

smokisalmon
Alexander V. Lukyanov
2013-12-06 14:35:26 UTC
Permalink
Post by smokisalmon
Therefore my -include filter was
--include ^/BLA.D[0-9][0-9][0-9][0-9]/.*$
-->
mirror --delete --no-empty-dirs --only-newer --include
^/a/b/BLA.D[0-9][0-9][0-9][0-9] --newer-than=now-7days --verbose=3 ./a/b/
./a/b/
but it doesnt work at all. The result directory is completly empty.
The pattern matches the path after the base (i.e. ./a/b/ is not included).
Try -i "^/BLA.D[0-9][0-9][0-9][0-9]".
--
Alexander.
Loading...