From owner-freebsd-questions Wed May 29 19:12:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 295EB37B40C for ; Wed, 29 May 2002 19:12:20 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.3) id g4U2CJSL005249; Wed, 29 May 2002 21:12:19 -0500 (CDT) (envelope-from dan) Date: Wed, 29 May 2002 21:12:19 -0500 From: Dan Nelson To: Peter Leftwich Cc: FreeBSD LIST Subject: Re: mv vs. tar Message-ID: <20020530021219.GA78068@dan.emsphone.com> References: <20020529210249.J77775-100000@earl-grey.cloud9.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020529210249.J77775-100000@earl-grey.cloud9.net> User-Agent: Mutt/1.3.99i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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