[CentOS] tar question

James Fidell james at cloud9.co.uk
Thu Jun 7 15:14:47 UTC 2007


Tom Brown wrote:
> 
>> I believe it goes something like:
>>
>> cd /some/input/dir tar cvf - . | (cd /to/here; tar xvf -)
> 
> that is spot on thanks! does it buffer anything in memory do you know or
> any other temp space? Just wonder as there are a few gigs of data.

My personal preference is to do something like:

  cd /some/input/dir
  find . -print | cpio -pvm /to/here

or

  cd /some/input/dir
  rsync -av . /to/here

(need to check the cpio options there -- I don't use that form very
often).

James



More information about the CentOS mailing list