Backups
SSD recovery¶
sudo ddrescue -d -r3 /dev/nvme01n1 backup.img backup.log
#restore image
dd if=./backup.img of=/dev/nvme01n2
Backup Over the Network¶
#Compress and transfer to another server
dd if=/dev/mapper/luksdev bs=5M conv=fsync status=progress | gzip -c -9 | ssh 192.168.88.253 dd of=/run/media/generalzero/backup/dev.img.gzip'