Copying a large file system (again)

Tino Schwarze linux-poweredge.lists at tisc.de
Mon Dec 3 09:18:34 CST 2007


Hi Harald,

On Mon, Dec 03, 2007 at 04:11:37PM +0100, Harald_Jensas at Dell.com wrote:

> You could use tar and split to create a single large TAR archive that is divided into pieces.
> 
> >From this article:
> http://www.redhatmagazine.com/2007/10/24/tips-from-an-rhce-splitting-tar-archives-on-the-fly/?sc_cid=3406
> 
> 
> create the archive:
> 
> tar -czf /dev/stdout $(DIRECTORY_OR_FILE_TO_COMPRESS) | split -d -b $(CHUNK_SIZE_IN_BYTES) - $(FILE_NAME_PREFIX)
> 
> extract the contents:
> 
> cat $(FILE_NAME_PREFIX)* >> /dev/stdout | tar -xzf /dev/stdin

Thanks, but splitting the archive is not the problem (I won't keep the
archive anyway, it's just on-the-fly piped through the network to the
destination machine). I'm having problems with the tar taking too much
memory (to keep track of the hardlinks, I suppose). A way to invoke tar
multiple times _and_ keeping hardlinks across archives would be
preferred, but this doesn't seem possible - hardlinks need to be within
the same archive...

Thansk,

Tino.

-- 
www.craniosacralzentrum.de
www.lebensraum11.de
www.spiritualdesign-chemnitz.de

Tino Schwarze * Parkstraße 17h * 09120 Chemnitz



More information about the Linux-PowerEdge mailing list