Today I wanted to try a full “bare metal restore” from my restic backup. I wanted to see how it works so that I did it at least one time when there is a real disaster.
I chose a smal webserver of mine with about 20GB of data which is backed up with restic each night to a sftp repo. The backup covers everything ("/"), just excluding proc, sys, tmp and var/tmp.
What I did:
- created a VM which is big enough at some cloud provider
- booted it with the provided resuce system
- downloaded restic to /usr/local/bin, checked the repo with restic … snapshots -> worked
- mounted the harddisk at /mnt/restore and did restic restore to that target.
- did a chroot to /mnt/restore, grub2-install, grub2-mkconfig, dracut -f
- changed fstab to the correct UUID
- umount, reboot
What can I say? Beside some small problems that are not worth to mention and that have nothing to do with restic, everything was up and running. Everything took about 50 minutes.
Great! Once again thank you for this wonderful software.
Just a little pity was that although I used -v when I did restic restore, I could not see any progress during restore. Would be nice to see how far the process is.