Tarballing

Posted: Sun, 3 September 2006 | permalink | No comments

So, what do you do when you want to make a tarball of a local filesystem, but with the result on a remote machine, taking up minimal space, but you just don't have a lot of CPU grunt on the local machine? That's right, you delegate the compression step to the far end. On the destination machine, you run:

 nc -l -p 31310 | gzip -c > zaurus_hdd3.tar.gz

And on the source machine, you run:

 tar cf - -C /hdd3 . | nc hussy 31310

And then watch the data roll by.

This post brought to you by the "Matt Has His Zaurus And Is Neglecting The Rest Of His Obligations To Play With It" Foundation.


Post a comment

All comments are held for moderation; markdown formatting accepted.

This is a honeypot form. Do not use this form unless you want to get your IP address blacklisted. Use the second form below for comments.
Name: (required)
E-mail: (required, not published)
Website: (optional)
Name: (required)
E-mail: (required, not published)
Website: (optional)