[Novalug] blocksize: tar piped over SSH to dd

Richard Rognlie rrognlie at gamerz.net
Thu May 17 13:21:15 EDT 2007


On Thu, May 17, 2007 at 01:12:18PM -0400, Ben Creitz wrote:
> If I have to tar a *huge* amount of files and send the result over SSH
> to dd, like this:
> 
>  tar cvf - big_dir | ssh me at remote "dd of=bkp.tar bs=xxx"
> 
> ... what is the ideal blocksize for dd? For tar?  Should I match them?
> Does it make a difference?

For disk to disk activities, it makes a big difference.  For network,
I don't know that it's as important.

something I would recommend is that you compress the data stream.

either with

	tar cvfz - big_dir | ssh me at remote "dd of=bkp.tar.gz"

or perhaps in the ssh session itself with "ssh -C"

-- 
 /  \__  | Richard Rognlie / Sendmail Ninja / Gamerz.NET Lackey
 \__/  \ | http://www.gamerz.net/~rrognlie    <rrognlie at gamerz.net>
 /  \__/ | Creator of pbmserv at gamerz.net
 \__/    |                Helping reduce world productivity since 1994


More information about the Novalug mailing list