but i try to backup my linux with server and restore with bare metal restore as you described.
can you explain, please?
i’m lost in various steps…
backup “server” with restic my server is ok
create VM (for testing i use virtualbox) and attach system rescue CD (similar to rescue mode on cloud)
format disk and create primary partition (ext4)
mount /dev/sda1 /mnt/restore
Hi,
The last ones are just the steps to initialize the bootloader (grub2) and rebuild initramfs (dracut). I did this in a centos System, steps may vary on other distributions but can usualy be googled for others.
[root@sysrescue /]# grub2-mkconfig
/usr/sbin/grub2-probe: error: failed to get canonical path of `/dev/sda1’.
[root@sysrescue /]# dracut -f
dracut: No ‘/dev/log’ or ‘logger’ included for syslog logging
dracut: Cannot find module directory /lib/modules/5.10.22-2-lts/
dracut: and --no-kernel was not specified
after search in google i found this
dracut --no-hostonly --force --regenerate-all --verbose
seems generate initramfs but when boot my VM i have grub error “minimal BASH …”