Unix tricks

Posted on November 23, 2006

To move a lot of data from a Linux server to an ftp.

mkfifo dump.tar.gz
tar czf - /home > dump.tar.gz
ftp ftp.tmp.net
put dump.tar.gz

After upload is complete decompress the dump file on the target site
tar xzvf dump.tar.gz

Why all this?
It’s faster to transfer one big file.
To save bandwidth, because of the compression.
To save disk space on the server.
P.S It’s stupid but ftp clients I tried can’t download from named pipe, you have to upload the file.

Filed Under Uncategorized |

2 Comments so far
  1. Guillaume December 6, 2006 6:13 pm

    Sorry for not shaking your hand today.. I’d just coughed into it =)

  2. Iouri Goussev December 6, 2006 6:23 pm

    Don’t worry ;-) I realized that. It was funny, you moved you hand away so fast, I was surprised.

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name

Email

Website

Comments

For spam detection purposes, please copy the number 5678 to the field below:

© Copyright 0xDEADBEEFCAFE • Powered by Wordpress • Design by Sebastin.

free web hit counter