I'd wager because cp is known for doing terrible things with links and
permission unless you know the correct incantation and it doesn't work on
all UNIX the same way... whereas tar... tar works the same .. it always
does exactly what it says on the man page..
Dave.
On Thu, 6 Sep 2001, Jerry Walsh wrote:
> May I ask why you used tar rather then just cp?
>> At 13:46 06/09/01 +0100, you wrote:
> >Well my idea (which I couldn't see problems with)
> >was to tar off the data on the fly from /usr to /mnt/usr, from /var to
> >/mnt/var
> >etc. etc.
> >e.g.:
> >cd /usr; tar lcvf - . | (cd /mnt/usr; tar xpvf - )
>>>
--
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DecStation / Linux VAX / ILUG person
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!