dd Across The Internet With ssh and xz
23 Mar 2012
Here’s how you can back up an entire hard disk across the internet
xz to save as much bandwidth as possible, also
pv for progress):
$ ssh -p 2222 email@example.com 'dd if=/dev/xvda1 | xz -c' | pv > sonzonaroot.img.xz
To view your files on the other end:
$ xz -d sonzonaroot.img.xz # mkdir /mnt/disk # mount -o loop sonzonaroot.img /mnt/disk
You can always not
xz the image up if you happen to be limited by
CPU or RAM, rather than bandwidth.
blog comments powered by Disqus
- GitHub Profile
- Stack Overflow Careers Profile
- Stack Overflow Profile
- G+ Profile
- PGP Public Key
- Rafty -- Ripper and Friggin Transcoder, Y'all
- Make Readme Markdown
- Diffview Mode
- Indent Hints Mode
- Track That Thing
- Co-Founder & CEO of Directangular, LLC.
- Previously: Linux Kernel development for QuIC. Some of my work (a little stale) is available on the Code Aurora Forum, here, here, here, and here.
- My nerd hobby: Creating and contributing to a variety of Open Source projects. See my GitHub profile.