To create a backup
dd if=file1 of=backup.dd
Everything is file. IF = Input File, OF = Output File. So, you can clone an entire disk
- Use
bs=4096
argument if you are cloning into a HD and need more speed on process - Use
status=progress
to monitoring data written - Use
conv=sparse
to sparse file - For integrity:
sha1sum backup.dd & sha1sum file1
To browser and see files
mkdir /media/file
mount backup.dd /media/file
If you had clone a disk with dd
, you can restore it to a physical drive.
dd if=disk.dd of=/dev/sdb
Try to recovery bad disk
dd_rescue -a -b 8M /dev/sda /mount/external/backup/sda.dd
how to clone a "folder" ??