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
2 Comments so far
Leave a Comment
If you would like to make a comment, please fill out the form below.
Sorry for not shaking your hand today.. I’d just coughed into it =)
Don’t worry ;-) I realized that. It was funny, you moved you hand away so fast, I was surprised.