--On Wednesday, October 01, 2003 13:22:36 -0400 Chuck Swiger <[EMAIL PROTECTED]> wrote:

Jamie wrote:
[ ... ]
    I don't know what the actual rationale is for this. Can anyone
    explain why it is oftentimes better to tar something rather than
using cp when copying directories and their contents?

tar handles symbolic links properly, whereas cp will "copy through" the contents of the link.

Another technique is 'cd /source ; find . -print | cpio -pdmv /dest'.


But none of the built in tools seem to preserve links, flags, and
sparseness.  If you want as close to a true copy as possible, check
out the cpdup port.



-Pat
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to