Your guest backups run every night, and the dashboard is green. Then the boot disk of a Proxmox VE node dies, and you find out that no backup job ever saved the node itself: the bridges, the storage definitions, the API tokens, and the cluster database. The fix is a Proxmox host backup of that configuration to a Proxmox Backup Server, on a schedule, plus a written rebuild path for a standalone node and for a cluster node.
- A vzdump guest backup does not contain the host. Back up /etc, /etc/pve, and /var/lib/pve-cluster with proxmox-backup-client.
- /etc/pve is a separate FUSE mount. Add it to the backup with --include-dev /etc/pve.
- A systemd timer runs the host backup every night with a dedicated API token and an encryption key.
- On a standalone node, the official recovery path is to restore config.db on a fresh install.
- On a cluster node, the other nodes still have /etc/pve. Remove the failed node, reinstall, and join again. Do not restore config.db there.
- Keep the encryption key and the connection details outside the host. They are inside the backup that you cannot read without them.
What a Proxmox Host Backup Must Contain
A guest backup contains the guest configuration and its disks. It does not contain the node. If you reinstall a node without a host backup, you rebuild the network, the storage list, the users, and the firewall rules from memory.
Proxmox VE keeps most of its configuration in /etc/pve. This is the Proxmox Cluster File System (pmxcfs). The official docs describe it as a database-driven file system based on FUSE. The data lives in one SQLite file on disk: /var/lib/pve-cluster/config.db. In a cluster, corosync replicates it to all nodes in real time.
Back up these three paths:
/etc: the network config in/etc/network/interfaces,/etc/hosts,/etc/hostname, APT sources, kernel and driver options, and the mounted/etc/pvewithstorage.cfg, guest configs, users, and firewall rules./var/lib/pve-cluster:config.db, the database behind/etc/pve./root: SSH keys and your own scripts.
/etc/pve/priv holds secrets: API token secrets in token.cfg, storage passwords, and the key for each encrypted PBS storage. The host backup therefore contains secrets too. Encrypt it.
For a single backup before a major upgrade, the Proxmox VE 8 to 9 backup checklist has the full list of files. Here, the host backup runs every night, and the rebuild steps follow below.
Prepare the Proxmox Backup Server Side
What You Need
- A Proxmox VE node (proxmox-backup-client is installed with Proxmox VE)
- A PBS datastore that is not on the same host
- A user or API token with backup rights on the datastore (role DatastoreBackup on a self-hosted PBS)
- The certificate fingerprint of the server, if it uses a self-signed certificate
- A password manager for the encryption key and the connection details
Use a separate API token for host backups. Then you can revoke it without a change to the guest backup storage. The repository string has the format user@realm!token@host:datastore. Put it in single quotes, because the ! is a special character in most shells.
Create an encryption key for the host backup. A key with a password asks for the password at each run. For an unattended job, create the key without a password (--kdf none) and protect the file instead:
proxmox-backup-client key create /root/host-backup.key --kdf none
chmod 600 /root/host-backup.keyCopy the key file to your password manager now. The key is in /root, so it goes into the backup. But you cannot open an encrypted backup to get the key out of it. For key handling in general, see PBS client-side encryption.
Run the First Host Backup
Put the connection details in a file that only root can read. Both the shell and systemd can use it:
PBS_REPOSITORY='hostbackup@pbs!pve1@pbs.example.com:datastore1'
PBS_PASSWORD='<api-token-secret>'
PBS_FINGERPRINT='<sha256-fingerprint-of-the-server>'Then run the backup by hand once:
set -a; . /etc/pve-host-backup.env; set +a
proxmox-backup-client backup \
etc.pxar:/etc \
pve-cluster.pxar:/var/lib/pve-cluster \
root.pxar:/root \
--include-dev /etc/pve \
--backup-id pve1 \
--keyfile /root/host-backup.keyEach name.pxar:/path argument makes one file archive in the snapshot. proxmox-backup-client does not go into other mount points by default. Without --include-dev /etc/pve, the etc.pxar archive has an empty /etc/pve. The --backup-id sets the name of the backup group, so the snapshots show up as host/pve1/<time>. Use the node name, so that each node gets its own group.
Check the result with proxmox-backup-client snapshot list. The new snapshot must show the three archives etc.pxar, pve-cluster.pxar, and root.pxar.
Schedule It with a systemd Timer
A host config changes less often than a guest disk. One backup per night is enough for most nodes. Deduplication on PBS keeps each run small, because unchanged chunks are not stored again.
[Unit]
Description=Host configuration backup to Proxmox Backup Server
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
EnvironmentFile=/etc/pve-host-backup.env
ExecStart=/usr/bin/proxmox-backup-client backup etc.pxar:/etc pve-cluster.pxar:/var/lib/pve-cluster root.pxar:/root --include-dev /etc/pve --backup-id pve1 --keyfile /root/host-backup.key[Unit]
Description=Nightly host configuration backup
[Timer]
OnCalendar=*-*-* 01:30
RandomizedDelaySec=15m
Persistent=true
[Install]
WantedBy=timers.targetsystemctl daemon-reload
systemctl enable --now pve-host-backup.timer
systemctl start pve-host-backup.service
journalctl -u pve-host-backup.service -n 20Persistent=true starts a missed run after the node boots again. Pick a time that does not overlap with the guest backup window. Add the host group to your keep rules like any other backup group, and watch the job like the others. A timer that fails in silence is no better than no backup.
Rebuild a Node: Standalone or Cluster?
The rebuild steps depend on one question: does another node still have /etc/pve?
| Question | Standalone node | Cluster node |
|---|---|---|
Where is /etc/pve after the failure? | Only in the host backup | On all other nodes |
Restore config.db from the host backup? | Yes, on a fresh install | No, the join overwrites /etc/pve |
Guest configs come back from | config.db | The cluster |
Use the host backup for | config.db, network, all node files | Node-local files only (network, /etc, /root) |
In both cases, the first steps are the same. Install the same Proxmox VE major version on the new hardware, with the same hostname and IP address. Then restore the archives to a staging directory, not directly over /etc:
# First put the key and /etc/pve-host-backup.env back
# from your password manager
cat > /root/host-backup.key # paste the key, then Ctrl+D
chmod 600 /root/host-backup.key
set -a; . /etc/pve-host-backup.env; set +a
proxmox-backup-client snapshot list
SNAP=host/pve1/2026-11-07T01:30:12Z
mkdir -p /root/restore
for a in etc pve-cluster root; do
proxmox-backup-client restore "$SNAP" $a.pxar /root/restore/$a \
--keyfile /root/host-backup.key
doneNow compare /root/restore/etc/network/interfaces with the new file. Copy over the bridges, bonds, and VLANs, and check the interface names with ip link. New hardware can have other names. Apply the change with ifreload -a, and keep a console (IPMI or iKVM) open while you do it.
Standalone node: restore config.db
The Proxmox VE admin guide describes this recovery: on the new host, with nothing running, stop the pve-cluster service, replace config.db, and reboot.
Run systemctl stop pve-cluster. The new host must have no guests.
Run cp /root/restore/pve-cluster/config.db /var/lib/pve-cluster/config.db, then chmod 0600 /var/lib/pve-cluster/config.db. The docs require the permissions 0600.
Make /etc/hostname and /etc/hosts match the lost host. If you installed with the same name and IP, they already match.
After the reboot, /etc/pve shows the old storage list, users, and guest configs again.
The guest configs are back, but the disks are not. Restore each guest from the PBS storage to its original ID.
Because the guest configs already exist, a restore to the same ID overwrites them. On the command line, qmrestore and pct restore need --force for this. Before you restore, check that each storage in storage.cfg exists on the new node with the same name. The disaster recovery guide covers restore order and storage mapping.
If your PBS storage uses client-side encryption, the key is in /etc/pve/priv/storage/<storage-id>.enc. The restored config.db brings it back. If you do not restore config.db, upload the key again from your password manager before the first guest restore.
Cluster node: remove, reinstall, join
In a cluster, do not restore config.db on the new node. The other nodes have the current /etc/pve, and the docs say that a join overwrites all existing configuration in /etc/pve.
The docs say it is critical to power off the node before removal. It must not come back with its old configuration.
For a guest with only shared disks, move its config file from /etc/pve/nodes/<old-node>/ to an online node, for example mv /etc/pve/nodes/pve2/qemu-server/100.conf /etc/pve/nodes/pve1/qemu-server/. Guests with local disks need a restore from backup.
On a remaining node, run pvecm delnode pve2, then check with pvecm nodes. Remove the node from replication jobs and HA rules.
Save what you still need from /etc/pve/nodes/pve2, then remove the directory.
Install Proxmox VE, restore the host archives to a staging directory, and copy back only node-local files: network, hosts, APT sources, kernel options, and /root/.ssh if you need it.
Run pvecm add <ip-of-a-cluster-node>. The new node must have no guests. If SSH errors show up because the name or IP is the same as before, run pvecm updatecerts once on the new node.
After the join, the node gets storage.cfg, users, and the PBS storage with its key from the cluster. Restore the guests with local disks from PBS.
Test the Restore Before You Need It
A host backup that nobody opened is a guess. Twice a year, do a dry run:
- Open the newest host snapshot and restore one file, for example
/etc/network/interfaces. The file-level restore guide shows the catalog shell and the GUI. - Restore
pve-cluster.pxarto a test VM with Proxmox VE installed, and follow the standalone steps. Check that the storage list and the guest configs appear. - Check that the encryption key in your password manager opens the backup.
For a full drill plan, see restore testing and DR drills.
Common Mistakes
- No --include-dev /etc/pve. The archive has
/etc, but/etc/pveis empty in it. - Key only on the host. The backup exists, but you cannot decrypt it after the host is gone.
- config.db restored on a cluster node. The cluster already has the current data. Remove the node, reinstall, and join.
- Old node powered on again. A removed node that boots with its old configuration can break the cluster.
- Same backup ID on all nodes. All hosts then write into one group. Use the node name as the ID.
Wrapping Up
Guest backups protect your VMs. A host backup protects the node that runs them. One systemd timer, one API token, and one encryption key give you a nightly copy of /etc, /etc/pve, and config.db on a Proxmox Backup Server. Write down the rebuild path for your setup (standalone or cluster) and test it once, so that a dead boot disk costs you a reinstall and not a day of guesswork.
remote-backups.com provides managed Proxmox Backup Server datastores in German data centers. Use the same datastore for guest backups and for proxmox-backup-client host backups.
See PBS datastores





