[SOLVED] How to restore a deleted VM which has PBS backups

Reinitialized

Member
Jun 11, 2022
5
1
8
Apologies if I'm missing something obvious here, but I am looking to reconfigure my VE cluster which will require me deleting all of my VMs from the Ceph pool due to how my storage is currently configured. One of the things I've noticed as part of doing a checklist before proceeding is there doesn't seem to be a very clear way to restore a VM which was deleted from VE but has been backed up to PBS. This concerns me as part of a backup plan is for those accidental deletions, and afaict PBS/VE doesn't provide such functionality ...

Hopefully I'm wrong and am missing something obvious :)
 
Not as intuitive as it could be, but I have found a way!

1. Start by creating a new Container/VM (in this case, I am using a container)
1654964427454.png
2) Ensure you're using the correct ID, the rest of the configuration doesn't matter and can be gibberish for now
1654964476093.png
3) Select any template, doesn't matter which
1654964599884.png
4) Speed run through the rest of the config by repeatedly clicking Next, followed with Finish at the Confirm page
1654964628287.png
5) Click finish, go to the Backup page of the container/virtual machine, and restore from desired backup
1654964758760.png
6) As you can see above, the "Overwrite Restore" page provides options for adjusting some configurations as you desire. In my case, I'm leaving as is.
7) You will get a warning stating "This will permanently erase current VM data." Hit yes, as this is what we want!
1654964854831.png
8) Once the Restore process is done (depends on available bandwidth), start the container/virtual machine!
9) Observe and confirm the desired settings and data were restored
 
Last edited:
  • Like
Reactions: Hyacin
You just select your Vzdump/PBS storage on your PVE webUI. then you go to the "Backups" tab, select your backup and restore it:
1654965968672.png
The storage will list all backups, even the ones deleted from the PVE node. and there you also got additional option like restoring a backup as another VMID.
 
Last edited:
You just select your Vzdump/PBS storage on your PVE webUI. then you go to the "Backups" tab, select your backup and restore it:
View attachment 37868
The storage will list all backups, even the ones deleted from the PVE node. and there you also got additional option like restoring a backup as another VMID.
Now this is more like it, much better than how I was going about it LOL. Thanks for the pointer
 
the difference between the two is that backup and restore within a VMID is allowed with less privileges than the general restore from a storage ;)