On Fri, 21 Nov 1997, Alex Yukhimets wrote:

: Hi.
: 
: Does anyone know the best way to copy a huge directory tree (~1Gig)
: to another disk (mounted at some point)? I need to preserve the
: ownerships and permissions, preservation of times are optional.
: 
: I am aware of 3 ways: 
: tar cpfl - dir1 | tar -C dir2 -xpf -
: find dir1 -xdev -print | cpio -p -admu dir2
: cp -ax dir1 dir2
: 
: Which one is considered to be safer, faster, etc?
: 
: thanks.
: 
: Alex Y.
: 
FWIW,
I prefer cpio as it (IMHO) does the best job of preserving permissions,
and it doesn't throw up on device files and the like.

However, this seems to be a topic similar to religion; last time we
debated this there was quite a row.  Not unlike debating vi/emacs/etc.
...

--
Nathan Norman
MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD  57104
Voice: (605) 334-4454 Fax: (605) 335-1173
email: [EMAIL PROTECTED] or  [EMAIL PROTECTED]
PGP Key ID: 0xA33B86E9 - Public key available at keyservers  
PGP Key fingerprint: CE03 10AF 3281 1858  9D32 C2AB 936D C472


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to