Date: Thu, 2 Oct 2003 08:35:14 -0700 (PDT) From: Mark Terribile <materribile@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: Re: tar vs cp Message-ID: <20031002153514.8770.qmail@web21110.mail.yahoo.com> In-Reply-To: <20031001222052.8F7FF16A4DD@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031002153514.8770.qmail>