Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2003 13:37:32 -0700 (PDT)
From:      Viktor Lazlo <viktorlazlo@telus.net>
To:        Charles Swiger <cswiger@mac.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: tar vs cp
Message-ID:  <20031001133635.Q8342@njamn8or.no-ip.org>
In-Reply-To: <8F2D6ACA-F44C-11D7-88BE-000A27D851E6@mac.com>
References:  <8F2D6ACA-F44C-11D7-88BE-000A27D851E6@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031001133635.Q8342>