From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 13:37:36 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 D529816A4C2 for ; Wed, 1 Oct 2003 13:37:36 -0700 (PDT) Received: from priv-edtnes10-hme0.telusplanet.net (outbound02.telus.net [199.185.220.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id E59DD43FE3 for ; Wed, 1 Oct 2003 13:37:35 -0700 (PDT) (envelope-from viktorlazlo@telus.net) Received: from njamn8or ([207.6.240.165]) by priv-edtnes10-hme0.telusplanet.netESMTP <20031001203735.ESMS21170.priv-edtnes10-hme0.telusplanet.net@njamn8or>; Wed, 1 Oct 2003 14:37:35 -0600 Date: Wed, 1 Oct 2003 13:37:32 -0700 (PDT) From: Viktor Lazlo X-X-Sender: viktorlazlo@njamn8or.no-ip.org To: Charles Swiger In-Reply-To: <8F2D6ACA-F44C-11D7-88BE-000A27D851E6@mac.com> Message-ID: <20031001133635.Q8342@njamn8or.no-ip.org> References: <8F2D6ACA-F44C-11D7-88BE-000A27D851E6@mac.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Felix Deichmann cc: freebsd-questions@freebsd.org Subject: 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: Wed, 01 Oct 2003 20:37:37 -0000 On Wed, 1 Oct 2003, Charles Swiger wrote: > On Wednesday, October 1, 2003, at 04:03 PM, Felix Deichmann wrote: > > Chuck Swiger wrote: > >> 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... >From the manpage: Note that cp copies hard linked files as separate files. If you need to preserve hard links, consider using tar(1), cpio(1), or pax(1) instead. Cheers, Viktor