From owner-freebsd-questions Wed May 29 19:24:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from notus.primus.ca (mail.tor.primus.ca [216.254.136.21]) by hub.freebsd.org (Postfix) with ESMTP id A655437B405 for ; Wed, 29 May 2002 19:24:15 -0700 (PDT) Received: from dialin-142-227.hamilton.primus.ca ([209.90.142.227]) by notus.primus.ca with esmtp (Exim 3.33 #16) id 17DFbs-0005NF-0A for freebsd-questions@freebsd.org; Wed, 29 May 2002 22:24:17 -0400 Date: Wed, 29 May 2002 22:23:58 -0400 (EDT) From: Jason Hunt X-X-Sender: leth@lethargic.dyndns.org To: freebsd-questions@freebsd.org Subject: Re: mv vs. tar In-Reply-To: <20020529210249.J77775-100000@earl-grey.cloud9.net> Message-ID: <20020529221255.F95644-100000@lethargic.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Wed, 29 May 2002, Peter Leftwich wrote: > 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 think it depends on whether the files are being moved to somewhere on the filesystem or not. If they are being put somewhere on a local disk or an NFS mounted directory then mv might be faster overall because there is no need to tar/untar. If you want to transfer the files somewhere not in the filesystem, such as to another machine via FTP, storage on a filesystem that does not retain the same permisions, redistribution to numerous other places, or archving them somewhere for backup, etc etc etc, then tar or any other archiving utilty is good. Hope this helps. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message