Hi,
I‘d like to have your opinion or some reference to howtos or manuals about how to backup/restore Proxmox VE Host.
My setup:
1) Proxmox VE installed on Intel NUC on nvme0
2) Proxmox Backup Server in LXC container backed up by Proxmox VE schedule on NFS share
3) Proxmox VMs and CTs (apart from PBS) backed up to PBS that saves the data to /mnt/pve/sata_disk/proxmox_backups via bind-mount using the /dev/sda disk (that disk is automatically mounted by Proxmox VE since I’ve added it as disk->Directory within PVE GUI, without selecting the Add Storage flag since it is used by PBS and not PVE)
4) Daily cron job that archives (with tar cvpjf) /etc folder onto an external NFS share
In case of disaster, I have quite clear ideas about how to restore everything apart from PVE Host:
1) Reinstall PVE from Scratch and then a) restore config from /etc backup on the NFS share or b) reconfigure everything “by hand”?
2) Restore PBS LXC container from NFS share
3) Restore all the VMs and CTs via PBS
First of all, can you confirm me that VMs and CTs’ backups saved by an instance of PVE can be restored by a new install of PVE since they’re self-contained, i.e. they contain all the info necessary to be restored (no encryption in use)? The same for PBS backups restored by a new PBS installation?
My greater concerns are about the first step, i.e. reconfiguration of PVE. If I do a fresh install, can I simply re-install the packages I’ve added via apt install and then copy the /etc backup over the fresh install and reboot the machine and hope to have all the configurations (storages, schedules etc) back to my PVE?
Do I need to back up other file system folders or is /etc sufficient? Should I save the output of some commands like mount to rebuild the PVE host after the disaster?
Would it be feasible to dump (with DD) the entire /dev/mapper/pve-root to an external disk once every X days and in case of disaster do a fresh install (to re-create the same disk layout and partitions, supposing to have a disk with the same size), reboot from USB with a live Linux distro and then DD in the opposite direction? This would be surely more difficult for me since I don’t really know if it is possible to do that and how to do that (I don’t know if the live Linux would see it as /dev/mapper/PvE-root or if I need to do some LVM magic which is something I don’t really know at present time)
Thank you in advance for any help!
I‘d like to have your opinion or some reference to howtos or manuals about how to backup/restore Proxmox VE Host.
My setup:
1) Proxmox VE installed on Intel NUC on nvme0
2) Proxmox Backup Server in LXC container backed up by Proxmox VE schedule on NFS share
3) Proxmox VMs and CTs (apart from PBS) backed up to PBS that saves the data to /mnt/pve/sata_disk/proxmox_backups via bind-mount using the /dev/sda disk (that disk is automatically mounted by Proxmox VE since I’ve added it as disk->Directory within PVE GUI, without selecting the Add Storage flag since it is used by PBS and not PVE)
4) Daily cron job that archives (with tar cvpjf) /etc folder onto an external NFS share
In case of disaster, I have quite clear ideas about how to restore everything apart from PVE Host:
1) Reinstall PVE from Scratch and then a) restore config from /etc backup on the NFS share or b) reconfigure everything “by hand”?
2) Restore PBS LXC container from NFS share
3) Restore all the VMs and CTs via PBS
First of all, can you confirm me that VMs and CTs’ backups saved by an instance of PVE can be restored by a new install of PVE since they’re self-contained, i.e. they contain all the info necessary to be restored (no encryption in use)? The same for PBS backups restored by a new PBS installation?
My greater concerns are about the first step, i.e. reconfiguration of PVE. If I do a fresh install, can I simply re-install the packages I’ve added via apt install and then copy the /etc backup over the fresh install and reboot the machine and hope to have all the configurations (storages, schedules etc) back to my PVE?
Do I need to back up other file system folders or is /etc sufficient? Should I save the output of some commands like mount to rebuild the PVE host after the disaster?
Would it be feasible to dump (with DD) the entire /dev/mapper/pve-root to an external disk once every X days and in case of disaster do a fresh install (to re-create the same disk layout and partitions, supposing to have a disk with the same size), reboot from USB with a live Linux distro and then DD in the opposite direction? This would be surely more difficult for me since I don’t really know if it is possible to do that and how to do that (I don’t know if the live Linux would see it as /dev/mapper/PvE-root or if I need to do some LVM magic which is something I don’t really know at present time)
Thank you in advance for any help!
Last edited: