Skip to content

Instantly share code, notes, and snippets.

@gautamkrishnar
Created December 6, 2015 07:29
Embed
What would you like to do?
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