Unix administration - tar

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > September 2004 > tar





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author tar
William S. Perrin

2004-09-29, 3:09 am

Anyway to make this go faster?

tar cf - oracle/ | remsh pluto "cd /; tar pvxf -"

Native HPUX tar, cpio can't handle 2GB files.
Could I use bigger BLOCK size??

Thanks

Michael Tosch

2004-09-29, 3:09 am

In article <415A2C94.90008@lawson.com>, "William S. Perrin" <william.perrin@lawson.com> writes:
> Anyway to make this go faster?
>
> tar cf - oracle/ | remsh pluto "cd /; tar pvxf -"
>
> Native HPUX tar, cpio can't handle 2GB files.


It should. Watch out for a patch.

> Could I use bigger BLOCK size??


No, the pipe will always slice it into smaller blocks.

If your bottleneck is the link ( < 10Mbit/sec ),
then this is faster:

tar cf - oracle | gzip -c | remsh pluto "cd /; gunzip -c | tar pxf -"

(if you dont have gzip/gunzip: try compress/uncompress.)

--
Michael Tosch
IT Specialist
HP Managed Services
Technology Solutions Group
Hewlett-Packard GmbH
Phone: +49 2407 575 313
Mail: michael.tosch:hp.com


Stephane CHAZELAS

2004-09-29, 3:09 am

2004-09-28, 22:31(-05), William S. Perrin:
> Anyway to make this go faster?
>
> tar cf - oracle/ | remsh pluto "cd /; tar pvxf -"


If the bottleneck is on the network bandwidth, try with:

tar cf - oracle | gzip -3 | remsh pluto "cd / && gzip -d | tar pxf -"

> Native HPUX tar, cpio can't handle 2GB files.
> Could I use bigger BLOCK size??

[...]

It won't help.

Try installing GNU or Heirloom toolchest tar.

Also look if there's a pax command on your system that is
largefile aware.

--
Stephane
Doug Freyburger

2004-09-29, 8:09 pm

William S. Perrin wrote:
>
> Anyway to make this go faster?
> tar cf - oracle/ | remsh pluto "cd /; tar pvxf -"
> Native HPUX tar, cpio can't handle 2GB files.


Dump and restore can handle large files, and they run slightly
faster than tar. Others have mentioned gzip to compress the
data stream, that should be a "z" in the tar command once you
switch from the HPUX native one to the GNU one.

> Could I use bigger BLOCK size??


There's a pipe in your command. Pipes are inherently
unblocked. Your question is meaningless in this context.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com