Backup your hdd to 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
Note: Don't save the file in sdc1
To restore backup image:
gunzip -c img.gz | dd of=/dev/sdc1

Verify with the following:
sha1sum imgsha1sum /dev/sdc1


Popular posts from this blog

How To Make IoT Messaging with BashShell

How To Make IoT Tweet with Python