Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 21:12:19 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.ORG>
Subject:   Re: mv vs. tar
Message-ID:  <20020530021219.GA78068@dan.emsphone.com>
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
In the last episode (May 29), Peter Leftwich said:
> 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...

A tar pipe will be much faster, since reading and writing will be
overlapped.

( cd /source ; tar cf - . ) | ( cd destination ; tar xfp - )


-- 
	Dan Nelson
	dnelson@allantgroup.com

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?20020530021219.GA78068>