Discussion:
mirror exclude include not working as expected
leo stone
2013-12-02 17:23:55 UTC
Permalink
Hello List,

the mirror command is giving me a headache. I am trying to mirror parts of
a directory tree
using the exclude and include options to the mirror command.

Given the following path at the source url

dir_0/dir_1/dir_2/file_0

I would expect the command

mirror -x .* -i dir_0/dir_1/dir_2/.* source_url target_url

to copy file_0 to the tree at the target. But this is not happening!

So, either I misunderstand how the exclude and include options are supposed
to
work or there is a bug at the including side of the code.

The only way I can get the program to include anything is to only match
against a
directory entry at the 1th level of the source tree, eg.

mirror -x .* -i dir_0/.* source_url target_url

This way it would include everything below "dir_0" , as expected,
but anything more specific than this
and the program ignores the include seemingly, or it does not match
anything anymore ....

Can someone please enlighten me of what is going on there.

Thank you
leostone

Loading...