Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2002 03:20:23 +0200
From:      Matthias Buelow <mkb@mukappabeta.de>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: mv vs. tar
Message-ID:  <20020530012023.GB593@altair.mukappabeta.net>
In-Reply-To: <20020529210249.J77775-100000@earl-grey.cloud9.net>
References:  <20020529210249.J77775-100000@earl-grey.cloud9.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Leftwich writes:

>When moving a large directory (hoping to preserve ALL modification times),
>is it better/smarter to use the "mv" command, or first "tar" the directory
>then "untar" it to the new location?  Some interesting debate to follow...

I prever pax -rw, since you don't have to run the data through a pipe then
(like you would have to with tar cf -|(cd ...; tar xf -).)
I think cpio in pass-through mode is equivalent but haven't verified.

--mkb


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020530012023.GB593>