Skip to content

Instantly share code, notes, and snippets.

@Qalthos
Created October 14, 2014 01:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Qalthos/8569c8c8de2059c1f75d to your computer and use it in GitHub Desktop.
Save Qalthos/8569c8c8de2059c1f75d to your computer and use it in GitHub Desktop.
backup hdd
# Mount drive here
dd if=/dev/zero of=/path/to/mount/zero
# Unmount drive here
sudo dd if=/dev/whatever bs=4k | pv | 7za a -si -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z -bd
@NTICompass
Copy link

Now to use this to back up Zack's hard drive :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment