[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-amd64
Subject:    Re: [gentoo-amd64]  Re: urgent: Segfaults after synchronously emerging|downloading 30GB|burnng a DVD
From:       Bo =?utf-8?q?=C3=98rsted_Andresen?= <bo.andresen () zlin ! dk>
Date:       2006-05-30 18:01:35
Message-ID: 200605302001.41591.bo.andresen () zlin ! dk
[Download RAW message or body]

Tuesday 30 May 2006 19:23 skrev Hamish Marson:
> Just be careful with this one. If the destination directory doesn't
> exist, then you'll overwrite the sourcefiles with the first block...
> Ooops... (Having said that, it's still my favourite way of copying
> lots of files from one place to another).

That's why it should be like this:

# cd /sourcedir && tar -cpf - . | (cd /destdir && tar -xvpf -)

Then it will fail and abort if any of the cd operations fails. Also the 
destdir should be given either as an absolute path or relative to the 
sourcedir (not relative to whatever your path is when you issue the command 
above.

With GNU tar one can simply do this:

# tar -C /sourcedir -cpf - . | tar -C /destdir -xvpf - 

-- 
Bo Andresen

[Attachment #3 (application/pgp-signature)]
-- 
gentoo-amd64@gentoo.org mailing list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic