Accidentally deleted /etc/pve - and I don't have a backup

David Fisher

Member
Nov 3, 2016
14
0
21
51
I accidentally deleted /etc/pve and I have no backup. Can anyone guide me in getting up and running again?

The disk image files are still in place and I have copies of vm conf files from /etc/pve/nodes/proxmox/qemu-server. But apart from that I have nothing. Re-installing would be a major pain! Help!

pve-manager/6.4-4/337d6701 (running kernel: 5.4.106-1-pve)
 
Could you install a second temporary drive.. install pve with same host name/network settings, then backup /etc/pve from it and restore it back on the main.
 
Last edited:
Could you install a second temporary drive.. install pve with same host name/network settings, then backup /etc/pve from it and restore it back on the main.
The directory /etc/pve is stored inside a database, and to restore those files can only be done from a working Proxmox. So it depends whether the original Proxmox will still boot. Otherwise, maybe copying the database from the new to the old Proxmox might work. Sounds more difficult than just using the newly installed Proxmox and copying the VM configurations. Just make sure not to delete the VM virtual disks during new installation!
 
Good question. And isn't the first time I'm reading this.
Since /etc/pve is a database, would it not be great if it did versioning as well? Maybe add a timestamp field to every entry and keep a reasonable amount of them, add support rollback to an earlier version?
 

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!