***NEVER*** do this use this instead:
umask 0 # tar honours umask
(cd /From/Dir && tar clf - . ) | (cd /To/Dir && tar xpf - )
^^ ^^
Note the double &&. If the cd fails then the tar doesn't run.
Otherwise you have the potential of mangling either the source tree
or the destination tree.
-- -- Drew Sullivan, <drew@ss.org> -- Toronto, Canada, +1-416-225-1592 "Intel Inside" isn't advertising. It's a warning!