[SOLVED] Backup and restore Node

Ivan Gersi

Renowned Member
May 29, 2016
83
7
73
54
I`ll have tu upgrade server`s array from sas to ssd, so I`d like to backup and restore node OS smartly.
I have to create a new array in raid controller because there is no another way.
How can backup and restore node OS smartly?
I know, I can make fresh install and then replace /var/lib/pve-cluster/config.db and /etc/...this is simple way but not so smartly as I can Image.
Is there more intelligent option?
 
Maybe a block level backup of your system disk while booting from a USB stick? Clonezilla might be an option.
 
Of course using boot media (some linux) and dd with tar and restore it from another disk/array is a way too.
But we have 2022...there is no better way in this year?
I`v been using dd for backup 20 years ago and I hoped we have some newer, smarter solution.
 
Node backups are on the roadmap but until now there is no easy way to backup and restore a PVE node.
 
I was searching for this, backup a host is still in the roadmap, so I think this proxmox wiki link has the best solution, check it please, according to this, we need to backup
/var/lib/pve-cluster/ /root/.ssh/ /etc/corosync/ /etc/hosts/ /etc/network/interfaces
because according to proxmox formum link /etc/pve is a virtual filesystem living in a sqlite3 database '/var/lib/pve-cluster/config.db'

but according to proxmox wiki link
Back up all files in /etc. You will need various files in /etc/pve, as well as /etc/passwd, /etc/network/interfaces, /etc/resolv.conf and others, depending on what is configured by default. (/etc/pve has the file /etc/pve/storage.cfg wich will re-map and make available any external media you used for backup)
So I think we need all /etc and /root/.ssh/ and custom files and folders, and as a precaution also /var/lib/pve-cluster/.
If someone has something clearer, please comment, there is no clear way, I hope I don't have to make the restauration.
 

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!