From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 08:35:17 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 900B916A4BF for ; Thu, 2 Oct 2003 08:35:17 -0700 (PDT) Received: from web21110.mail.yahoo.com (web21110.mail.yahoo.com [216.136.227.112]) by mx1.FreeBSD.org (Postfix) with SMTP id 6895243FCB for ; Thu, 2 Oct 2003 08:35:16 -0700 (PDT) (envelope-from materribile@yahoo.com) Message-ID: <20031002153514.8770.qmail@web21110.mail.yahoo.com> Received: from [24.228.74.10] by web21110.mail.yahoo.com via HTTP; Thu, 02 Oct 2003 08:35:14 PDT Date: Thu, 2 Oct 2003 08:35:14 -0700 (PDT) From: Mark Terribile To: freebsd-questions@freebsd.org In-Reply-To: <20031001222052.8F7FF16A4DD@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Re: tar vs cp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2003 15:35:17 -0000 >> tar handles symbolic links properly, whereas >> cp will "copy through" the contents of the link. > > Also true for cp -R? :-) > No, but not all systems have "cp -R", although > FreeBSD does. Likewise for the "-p" or > "--preserve-permissions" option... tar requires two executions, one to create the archive and one to remove it. This has advantages and disadvantages. cpio -p can do it in one pass, but requires that you expand the directories with find or provide a list file. Again, sometimes a good thing, sometimes not. cpio can also create a tree of links if you are on the same file system. Useful for moving large files with minimal disk activity (remove the original links afterwards). Mark Terribile __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com