Where really is /etc/pve?

michabbs

Active Member
May 5, 2020
137
20
38
In order to have self-consistent backups I always use snapshots feature of zfs/lvm. I made a backup of the whole rootfs of pve node this way:

- created snapshot of / (which in my case is on lvm, but could as well be on zfs)
- archived the whole filesystem from snapshot
- removed the snapshot

I noticed that /etc/pve in the archive is empty. It's not very surprising, as actually whole /etc/pve is separate mountpoint, but... I want to back up its content too. So where actually are all these files? (They have to be... somewhere, don't they?)
 
if you backup the / filesystem and haven't done any special setup, that backup should include the backing (sqlite) database of pmxcfs which is exposed via FUSE in /etc/pve.
 
By the way: Is there planned an automatic configuration backup feature? Just like it's for PMG: https://pmg.proxmox.com/pmg-docs/pmgbackup.1.html


PVE-host backups via PBS are one thing (which I also eagerly await), but an easy/simple export and import mechanism of the whole node-configuration to/from a single (archive-)file without PBS might be another one. :D

But my lay guess would be, that it is all not that easy (to implement; considering all the different setups and needed safe guards and so on)...
 
the two main points are
- covering all the common setups (it's quite obvious what the minimum set of stuff to backup is, but beyond that?)
- restore implementation

for PMG it's a lot simpler, since it's much more "appliance" like compared to PVE.
 
  • Like
Reactions: Neobin