I need to restore my OMV system partition from a backup, so I've already mounted an Ubuntu live system and the USB stick containing the zst file
I've already started zstdcat backupfile.dd.zst | sudo dd of=/dev/nvme0n1p2 status=progress
However, is this the right device to restore the backup to?
The .sfdisk file contains the following information:
label: gpt
label-id: 0518E42F-9245-4061-A822-F294B764FC98
device: /dev/nvme0n1
unit: sectors
first-lba: 34
last-lba: 976773134
sector-size: 512
/dev/nvme0n1p1 : start= 2048, size= 1048576, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=CE484F9A-DBF8-408E-BE17-BDC8849DF966
/dev/nvme0n1p2 : start= 1050624, size= 973721600, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=D492A8D9-8309-4412-91C7-B4BF6A1CF6EC
/dev/nvme0n1p3 : start= 974772224, size= 1998848, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, uuid=F5AB79E3-BDC9-4824-BFE3-2DBAAFB7C7B7
So should I restore to /dev/nvme0n1 instead as the file probably contains all 3 partitions (boot, main, swap)? Or doesn't the dd file contain a straight sector by sector dump of the SSD which I can just send to the original device?
Also I guess that there's no way to speed things up as the partition is very large (512GB)? I will certainly resize it but I guess that there's no way to skip the empty space? At this rate it will take over 5 hours.
EDIT: I've changed the restore to target /dev/nvme0n1 and I've added conv=sparse to try to skip the empty parts
EDIT2: the command completed successfully but the system doesn't boot
EDIT3: trying to follow the restore instructions [How-To] Restore OMV system backup made with openmediavault-backup plugin
I was able to restore the partitions although gparted gives a warning that the backup GPT partitions table is corrupt
However, I think that the zstd -d command will try to extract the full 512GB to the 32GB usb stick which obviously won't work. I'll probably try to add an USB harddisk later
Thanks!