Create HDD/SSD backup into an image

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