On Thu, Mar 30, 2000 at 12:33:12AM +1000, James Wilkinson wrote:
> * tar cf - * | (cd /mntnew ; tar xf -)
> the important line here is the tar line, this will preserve symlinks (a
> few caveats apply) and permissions and everything while copying a
> directory tree to another directory/filesystem/etc
I think that you'll need the second tar to be "tar xfp" (I
usually use "tar xvfp" for amusement's sake). Man tar says:
-p
--same-permissions
--preserve-permissions Extract all protection information.
from which I have always concluded that without -p you get the
operator (root's) current permissions on everything.
You probably want an "l" or "--one-file-system" option on the
first tar too, so that it doesn't follow a symlink onto
some partition other than /mntold.
--
Andrew
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text