Compress and store the image of a disk over the network

dd if=<device> | pv | nc <target> <port>
Create an image of "device" and send it to another machine through the network ("target" and "port" sets the ip and port the stream will be sent to), outputting a progress bar On the machine that will receive, compress and store the file, use: nc -l -p <port> | 7z a <filename> -si -m0=lzma2 -mx=9 -ms=on Optionally, add the -v4g switch at the end of the line in order to split the file every 4 gigabytes (or set another size: accepted suffixes are k, m and g). The file will be compressed using 7z format, lzma2 algorithm, with maximum compression level and solid file activated. The compression stage will be executed on the machine which will store the image. It was planned this way because the processor on that machine was faster, and being on a gigabit network, transfering the uncompressed image wasn't much of a problem.

2012-01-27 18:37:36

What Others Think

I would prefer to compress before I send.
Mozai · 543 weeks and 5 days ago
You could compress before sending the stream over the net, it depends on which side (sender or receiver) has better CPU and if the network is a bottleneck
Velenux · 540 weeks and 3 days ago
This website and details are mainly focused on those people who are studying or working in the IT field. Orange County restaurant The programming codes and algorithms that are provided here will be helpful for them. The compress and store the image of a disk over the network code is now given here
leonamargret · 58 weeks and 1 day ago
This command is mainly used to compress and store the image of a disk over the network. Through these kinds of">view it now simple commands, you can perform all these tasks. If you wish to learn more about such commands, this website is the best platform for you. You can join here to get more ideas.
Alyssalauren · 51 weeks and 2 days ago
I have tried out the code that you have provided to compress and store the image of a disc over the network white gold diamond wedding ring sets and the explanation you have added it really helped me a lot to understand the code that you have shared here
Kaitlyn · 48 weeks ago
Thanks for the valuable information you have added here on how to compress and store the image of a desk over the network and everything was well explained which made it easy for us to understand what you were trying to share shop Aigner for women online
Kaitlyn · 26 weeks and 2 days ago ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ???? SEO ????? ????? ????? ???? ????? ????? ??? ???? ???? ??????? Search Engine Optimization ??? ????? ??????????? ?? ????? ?????????? ????? ????? ?? ???? ???SEO
seofox · 21 weeks and 4 days ago
seofox · 20 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: