Ray Olszewski wrote:
> 
<snip>
> 
> 4. Run the copy command as "cp -a /old /new". Read the man page for cp to
> get an explanation of the -a flag.
> 
<snip>

Instead of cp, I personally use tar for this for the siple fact that cp
is a bit picky about special files (esp. named pipes), found in /dev/
and /var/... and /tmp. so instead of the above command, I'd use

$ tar cfp - -C /old . | tar xfp - -C /new

this is spelled thus:

_C_reate a tar _F_ile (- = STDOUT) and _P_reserve as much as you can of
the permissions. To do this, first _C_hange to /old, then use '.' as
source.
Take the output and pipe it to another tar, _X_tracting the stream from
_F_ile '-' after _C_hanging to /new.

I got cp's stuck on copying a 'p' file - since then, I use tar
exclusively for such things.

Marc

-- 
Marc Mutz <[EMAIL PROTECTED]>        http://marc.mutz.com/Encryption-HOWTO/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics

PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to