Skip to content

Instantly share code, notes, and snippets.

@gautamkrishnar
Created December 6, 2015 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gautamkrishnar/928586d69d035bb9c728 to your computer and use it in GitHub Desktop.
Save gautamkrishnar/928586d69d035bb9c728 to your computer and use it in GitHub Desktop.
Backup your hdd to an image with following simple command:
dd bs=4096 conv=noerror,sync if=/dev/sdc1 | gzip -c > img.gz
#To restore backup image:
gunzip -c img.gz | dd of=/dev/sdc1
#Verify with the following:
sha1sum img
sha1sum /dev/sdc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment