[SunHELP] mirror directory structure from one place to another without files

Simon Jespersen shj at pine.dk
Fri Apr 19 05:01:38 CDT 2002


Hi list!
I want to do a script which mirror the directory structure from one place to
another

i have a directory called /share which have subdirectories, i want to mirror
that to /share2 without taking any files with it.
until now i have tried with the folowing command, im excluding the .rsrc
directoies.
cd /share
find . -type d -name .rsrc -prune -o -print -exec cp /share2/ {} \;


following messages are displayed

cp: cannot access /share2/.
./checkinfile/fn/test_procdoc

Does anybody know have i could do that in a better manner.



Kind regards

Simon Jespersen
Project engineer
Pine Tree Systems A/S
Damhaven 5d
DK-7100 Vejle
Email: shj at pine.dk
Phone: +4575724477



More information about the SunHELP mailing list