Re: Re: tar vs cp

2003-10-02 Thread Mark Terribile
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

tar vs cp

2003-10-01 Thread Jamie
I've been told in the past that if you have a series of directories with subdirectories that you need to copy to another location on a disk, it is better to tar the directory, move the tarred file to the destination, and then untar it, rather than using cp to copy the directory and all of

Re: tar vs cp

2003-10-01 Thread Chuck Swiger
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

Re: tar vs cp

2003-10-01 Thread Felix Deichmann
Chuck Swiger wrote: tar handles symbolic links properly, whereas cp will copy through the contents of the link. Also true for cp -R? :-) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe,

Re: tar vs cp

2003-10-01 Thread Charles Swiger
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

Re: tar vs cp

2003-10-01 Thread Viktor Lazlo
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,

Re: tar vs cp

2003-10-01 Thread Pat Lashley
--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?

Re: tar vs cp

2003-10-01 Thread Kris Kennaway
On Wed, Oct 01, 2003 at 03:25:27PM -0700, Pat Lashley wrote: --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