less full-backup-using-dd-shell-command.md
Full backup using dd shell command
# historical archive — written years ago, kept as it was. Some info is dated.
If you want to copy an entire disk, or a single partition to another medium, all you need to do is type the following command
dd if=/dev/sda of=/dev/sdb1 bs=64K conv=noerror,sync status=progress
If, on the other hand, you want to create an image file of a partition or an entire disk, it’s enough to use:
dd if=/dev/sda conv=sync,noerror bs=64K status=progress | gzip -c > /PATH/backup_image.img.gz
To restore in the case of a compressed image file of an entire disk
gunzip -c /PATH/backup_image.img.gz | dd of=/dev/sda