How to backup PVE/Ceph nodes

sherminator

Well-Known Member
Oct 28, 2013
212
26
48
Hi there,

we would like to have a file based backup of our three PVE/Ceph nodes. The goal is to have everything needed to bring back one or more nodes from zero to the current state (except VM data of course). What do you suggest which files and directories we should backup?

Thanks and greets
Stephan
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
4,088
499
88
hi,

The goal is to have everything needed to bring back one or more nodes from zero to the current state
you'll probably want everything in /etc/ so that you can restore PVE configuration (/etc/pve and network configs (/etc/network/interfaces, /etc/hosts and so on). /etc also has important files for your system like /etc/passwd and /etc/shadow.

you can also include /var/lib/pve-cluster/, which has the config.db files. that db file is where the fuse filesystem in /etc/pve is stored -- with that you can restore your VM configurations to another node without quorum as well.

you might also want any cron jobs you configured, and also the /root directory if you have anything there.

i also suggest testing your backup to see if it works as you expect (you can try restoring it in a VM running PVE or a sacrificial host)

hope this helps!
 
  • Like
Reactions: velocity08

velocity08

Member
May 25, 2019
231
11
23
45
hi,


you'll probably want everything in /etc/ so that you can restore PVE configuration (/etc/pve and network configs (/etc/network/interfaces, /etc/hosts and so on). /etc also has important files for your system like /etc/passwd and /etc/shadow.

you can also include /var/lib/pve-cluster/, which has the config.db files. that db file is where the fuse filesystem in /etc/pve is stored -- with that you can restore your VM configurations to another node without quorum as well.

you might also want any cron jobs you configured, and also the /root directory if you have anything there.

i also suggest testing your backup to see if it works as you expect (you can try restoring it in a VM running PVE or a sacrificial host)

hope this helps!
Thanks @oguz

this was something we are also looking at so was good to see there is some information out there.

We are also using PBS in our setup, what would be excellent if there was a backup template for PVE to push all required backup data to PBS or some other network share from within the PVE GUI so that its a 1 click backup process once the backup storage has been configured.

This would also work in reverse if you needed to quickly restore a Node/ Host once the ISO was installed for PVE + backup storage added back you could do a restore of the config files etc.

would make backup/ restore a simple quick process to recover from a disaster.

thoughts?

""Cheers
G
 

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 your own in 60 seconds.

Buy now!