Backup of proxmox configurations #277
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We should keep a continuous backup of the proxmox configurations, especially the XML libvirt files for VMs and disks
Yes, a backup script and a documented restore procedure is important. There are many "PVE Host backup" scripts out there, but many are bad, dangerous, outdated or don't take into account that we are running PVE in a cluster, so I think we have to write our own.
Some interesting notes:
/etc/pvecontains most of the important files./dev/fuse on /etc/pve type fuse ..., It's a wack custom filesystem, and a spooky scary skeleton when the host is in a cluster. You cannot write freely to this directory./etc/pve/nodes/HOSTNAME/qemu-server/VMID.confare important, and they can be safely/freely copied/moved around when restoring, unlike a lot of/etc/pve/etc/also has some other important stuff, such as network configurations, SSH host keys, cronjobs, subgid mappings, etc. (hah) that we might want to backup/restore or not/etc/var/lib/vzcontains a lot of ISOs, templates, backup-dumps and is a common place to store cloud-init configs/var/lib/pve-clusterhas some spooky cluster databases that should be backed upI originally wrote this without automated restoration in mind - mostly to know what is what, had which resources and how it was all configured so that we could read off the old files in the case we had to set it all up again. I suppose automated restoration could be a goal that comes after just doing the backups themselves? Or it might be nice to keep it in mind while working on it.
The isos and templates probably don't need to be backuped, nor the SSH hostkeys and proxmox-vendored cronjobs.
Yes, I also have no intentions of automating the restore procedure, I am just saying that the restore procedure has some gotchas and should be documented, e.g. with a wiki article, before we are in a crisis recovery mode. Planning how to restore is the first step in deciding how to take proper backups.
/etc/cron.d/vzdump