VMs restore

Datex

New Member
Sep 22, 2024
3
0
1
Hi, yesterday i did few mistakes and it looks like i will have to reinstall proxmox. If possible i would like to restore my VMs and LXCs. Since the drive with the virtual disks should be fine i dont think it should be an issue to restore them. Can somebody tell me how to do it please? Thanks
 
Proxmox has builtin backup and restore, although if you have a spare laptop or PC you should look into Proxmox Backup Server for dedup and fine-grained restore, among other features.

You can set the backup target to Samba / NFS or an external drive, you should NEVER use the root/OS disk for backup storage. This is for at least (2) reasons, A) the Proxmox installer will WIPE the target drive; and B) if the disk dies outright then so do your backups. There is also C) backup files may get corrupted or deleted, and storing them on the same disk that the OS runs on will not help you in a disaster.

GUI: Folder view / Datacenter / Backup # schedule backup jobs

To restore, after you reinstall Proxmox you need to re-define the Storage the same way as it was before. Then click in the Storage that has your backups and hit the Backups entry in the right pane. Click on a backup file and hit the Restore button

https://forum.proxmox.com/threads/bulk-restore.106152/

https://pve.proxmox.com/wiki/Backup_and_Restore#vzdump_restore

https://www.oreilly.com/library/vie...05/7e01c902-434a-49d5-bb2c-b2118bf9d3a1.xhtml

You should also be backing up your critical files on a regular/daily basis:

https://github.com/kneutron/ansitest/tree/master/proxmox

Look into the bkpcrit script, set target to NAS or non-root disk, schedule it nightly in cron, be well.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!