Copy Structure excluding some folders

Hi

I want to copy the structure from one place to another.

-> cd /hol/;
-> find . -type d | cpio -pvdm /abc/cat;

while copying the structure I want to exclude some directories like test1 and Test.

I have read somewhere that this can be done with -prune option.

Could anyone please help me in this matter? thanks in advance.

Please see this FAQ advanced/complex uses of the find command

I am using
find . -type d \( ! -name test1 -o ! -name Test -prune \) |cpio -pvdm /abc/cat

to copy only the directories but it is not happening, it is copying everything.

But when I am using

find . \( ! -name test1 -o ! -name Test -prune \) |cpio -pvdm /abc/cat

it is copying the directories and files excluding the two directories Test and test1.

Could someone please help me out?