Link to this headingBackups

Link to this headingSSD recovery

# Create backup image with ddrescue - attempts recovery from damaged sectors # -d: use direct disk access # -r3: retry failed blocks 3 times sudo ddrescue -d -r3 /dev/nvme01n1 backup.img backup.log #restore image dd if=./backup.img of=/dev/nvme01n2

Link to this headingBackup Over the Network

#Compress and transfer to another server #Uses maximum compression (-9) and pipes through SSH dd if=/dev/mapper/luksdev bs=5M conv=fsync status=progress | gzip -c -9 | ssh 192.168.88.253 'dd of=/backup/dev.img.gzip'

Link to this headingBackup DVDs

Backup a DVD:

sudo dd if=/dev/sr0 of=dvd.iso bs=8192 status=progress

Recover a DVD with Read Errors:

# Get most of the data from the DVD sudo ddrescue -d -n -b2048 /dev/sr0 dvd.iso dvd.log # Retry bad sectors after the main copy sudo ddrescue -d -r3 -b2048 /dev/sr0 dvd.iso dvd.log

Link to this headingFix HDD Errors (Windows)

dism /online /cleanup-image /checkhealth dism /online /cleanup-image /scanhealth dism /online /cleanup-image /restorehealth sfc /scannow