Proxmox backups on two standalone nodes: one node had none at all

2026-12-03来源 dev.toEnglish
Proxmox backups on two standalone nodes: one node had none at all

I run two Proxmox nodes at home. They're standalone, not a cluster. I knew that. What I hadn't properly thought through is what it means for backups.

On 16 August 2026 I found out the newer node had no Proxmox backups at all. Not failing backups. None. No backup job, no backup storage, an empty dump folder. On that node were my agent box, my 3D printer monitoring box, a Nextcloud (since removed), and my password manager with 753 items in it.

Why nobody noticed

In a cluster, /etc/pve/jobs.cfg and storage.cfg are shared. On standalone nodes they're per node. So the backup job I'd set up on the first node did nothing at all for the second. The second node didn't even have a jobs.cfg file.

And every backup check I had was watching jobs that existed: the agent's own backup scripts and the first node's vzdump job. A node with no job produces no failures. There's nothing to go red.

The only container on that node with any backup was the agent box, and that was a configs-only snapshot, not the container itself.

Before and after: node 1's backup disk was full and failing, node 2 had no backups at all, email alerts were dropped, and one Kuma monitor covered three jobs

The first node wasn't fine either

A week earlier, on 9 August, I'd been chasing a networking problem and spotted that the first node's backup store was 99.95% full with 0 KiB free. Its newest dump was from 8 August. So that node's jobs were failing too, silently, with nothing pruning.

The store was called backup-nvme. It wasn't an NVMe. It was a 111.8 GB WD Green SATA SSD holding 109 GB across 235 dumps. The retention settings (keep-daily=7,keep-last=3,keep-weekly=4,keep-monthly=3) were never going to fit on that disk.

The fix that day was to point the job at an NFS export on my NAS instead, which had about 4.18 TB free.

Funny side note: I can't just pull that SSD out now it's not needed. It holds the only EFI system partition on the machine. The NVMe with all the containers on it has no ESP at all. So "retiring" it means unmounting the backup partition and dropping the storage, nothing physical.

Fixing the second node

On 16 August, two commands on the second node: add the same NFS storage, then create a nightly job. Server and export path swapped for placeholders, and I've renamed the storage:

pvesm add nfs nas-backup --server <nas> \ --export <export-path> --content backup \ --options vers=4.2 --prune-backups keep-daily=7 pvesh create /cluster/backup --schedule "03:00" --all 1 --storage nas-backup \ --compress zstd --mode snapshot --notes-template "{{guestname}}" \ --prune-backups keep-daily=7 --enabled 1 --repeat-missed 0 

03:00 on purpose, not 02:00. The first node already runs at 02:00, and both write to the same export.

Everything on that node came to about 36 GB against 3.8 TB free, so space wasn't a worry.

Configured isn't working

I didn't want to trust a config, so I ran a manual backup of the password manager straight away. 532 MB archive, exit 0, zstd -t passed, and it turned up in pvesm list. That was its first ever Proxmox-level backup. The first scheduled run was 17 August at 03:00.

Here are the two jobs as they are now, 18 October 2026:

Both nodes' jobs.cfg side by side: node 1 at 02:00, node 2 at 03:00, both to the same NFS storage with keep-daily=7

The catch with one shared export

Two nodes pruning the same folder has a trap. Pruning goes by guest ID. Any archive for a guest that no longer exists on the node doing the writing gets pruned once 7 newer archives with that ID land.

I had two archives I couldn't recreate: the agent box from before its migration (the only copy) and an old clone of the printer box. Both are now marked protected, which takes them out of retention:

pvesh set /nodes/<node>/storage/nas-backup/content/<volid> --protected 1 

The alerts went nowhere too

While I was in there I checked the emails. Both nodes used the built-in mail-to-root target, which hands mail to postfix. postfix had no relay host on either node, so it tried to deliver straight from my home IP to Gmail's servers, and Gmail dropped it. On the first node there were zero delivery records in 7 days, despite nightly backups. Backup alerting wasn't working anywhere.

Proxmox 9 has a native SMTP notification endpoint, so I didn't touch postfix at all. Create the endpoint with pvesh create /cluster/notifications/endpoints/smtp ..., point the default matcher at it, done. On both nodes, because standalone means doing it twice.

Then I tested it properly. A test notification from each node, and I checked both actually landed in the inbox, because exit 0 proves nothing. Then a real backup run. Its log said INFO: notified via target 'gmail-smtp' where it used to say mail-to-root, and the "backup successful" email turned up.

On 19 August I turned the success emails off with --match-severity error --match-severity warning. One email per node per day just trains you to ignore them.

One heartbeat for three jobs

Last bit, also 19 August. Three of my app-level backup scripts pushed to the same Uptime Kuma push monitor with the same token, on an 8-day interval. So any one of them succeeding reset it for all of them. Any single backup could have stopped dead and nothing would have noticed. That monitor had no notification attached either.

Now each backup has its own push monitor on a 26-hour interval with a Discord notification attached. The scripts only post to Discord when they fail. Success is quiet, and the push is the proof it ran. I tested it with a real password manager backup: exit 0, 753 items, Kuma logged the push on that backup's own monitor, nothing in Discord.

What I'd do differently

  • On standalone Proxmox nodes, treat every backup setting as per node, and check each node on its own.
  • Don't just check that jobs succeed. Check that every guest has a recent archive. A missing job never fails.
  • Size retention to the disk it's actually going on.
  • Test the alert path all the way to the inbox, not just the exit code.
  • Give every backup its own heartbeat.

Could you say right now when each of your containers was last backed up? I thought I could.

🤖 Drafted with AI assistance from my own homelab notes, logs and repos, and fact-checked against them before publishing.

原文:https://www.a8q9.cn/en/article/proxmox-backups-on-two-standalone-nodes-one-node-had-none-at-all-1e67fc.html

相关文章