Backups¶
The 3-2-1 Picture¶
3 copies of important data, on 2 different kinds of storage, with 1 copy offsite.
graph LR
subgraph HOUSE["🏠 At home"]
PVE["Proxmox guests"]
FW["OPNsense config"]
PHONE["Phones"]
NAS["TrueNAS<br/>encrypted ZFS mirror<br/>+ snapshots"]
end
subgraph OFFSITE["☁️ Offsite"]
BOX["Storage Box<br/>encrypted before upload<br/>+ daily provider snapshots"]
end
PVE -->|"nightly vzdump"| NAS
FW -->|"nightly SFTP, encrypted"| NAS
PHONE -->|"Immich / Syncthing"| NAS
NAS -->|"nightly rclone crypt"| BOX
What Gets Backed Up¶
| Data | To the NAS | Offsite |
|---|---|---|
| Every Proxmox VM and LXC | Nightly vzdump (keep last 3, 14 daily, 8 weekly, 3 monthly) | — |
| Firewall config | Nightly, encrypted (os-sftp-backup, keep 60) |
✅ nightly |
| Photos (Immich) | Lives on the NAS + hourly/daily snapshots | ✅ nightly |
| Documents | Lives on the NAS + hourly/daily/weekly snapshots | ✅ nightly |
| UniFi controller | Weekly automatic backup | — |
| Media, camera recordings | Lives on the NAS, no snapshots | ❌ replaceable |
Offsite Setup¶
The offsite copy is a Hetzner Storage Box (1 TB) reached over SFTP, with TrueNAS Cloud Sync tasks:
- Direction: push, sync
- Snapshot first: each run uploads from a fresh ZFS snapshot, so files can't change mid-upload
- Encryption: rclone crypt with filename encryption — the provider only ever sees scrambled names and contents
- Provider side: SFTP only (SMB/WebDAV off), daily snapshots, deletion protection on
⚠️ The encryption password and salt are the backup. Without them, the offsite copy is unreadable — to you as well. Keep them in your password manager and somewhere that doesn't depend on your homelab being up.
Gotcha: on a Storage Box the writable area is
/home. A remote path like/mybackupsfails withmkdir ... SSH_FX_FAILURE.
Alerts¶
- Proxmox backup results → ntfy (Proxmox webhook notification target)
- Grafana alert for any guest without a recent backup
- TrueNAS alerts on failed cloud sync tasks → ntfy
Still To Do¶
- Restore test. A backup you've never restored is a hope, not a backup. Next step: restore one guest and one offsite folder to scratch space and compare.
- Consider Proxmox Backup Server for deduplication and verification of vzdumps.