Configurer les sauvegardes Proxmox
Planifiez des sauvegardes vzdump et stockez-les sur NAS ou PBS.
Why this matters
A Proxmox host often runs your most important workloads — a NAS VM, your Docker host, maybe Home Assistant. If a disk dies or you break a VM during an upgrade, backups are what turn a disaster into a 10-minute restore. Proxmox has excellent built-in backups; you just need to configure them properly and then prove they work. This guide builds on the Proxmox homelab setup and the general backup strategy.
Two backup approaches
- vzdump — the built-in tool that creates full backups of a VM or container to a storage location (local directory, NFS, SMB, or PBS). Simple and reliable, but every backup is a full copy.
- Proxmox Backup Server (PBS) — a dedicated companion that adds incremental, deduplicated, verified backups with optional client-side encryption. It's dramatically more space- and time-efficient once you have several VMs. Highly recommended if you can run it.
What a Proxmox backup does not cover
vzdump saves guests (VMs and containers), not the Proxmox host itself. Also back up:
/etc/pve(cluster and VM configuration),/etc/network/interfaces,/etc/fstaband storage definitions.- Any scripts, cron jobs and notes you rely on.
- Data on disks passed through to a VM. A passed-through disk is not included in the guest backup.
- Anything on bind mounts into LXC containers, which vzdump skips unless configured.
A simple approach is a nightly job that archives /etc/pve and copies it with the rest of your data using Restic. Write down your rebuild procedure so you can reinstall the host from scratch.
Step 1: Add a backup storage target
In the Proxmox web UI, go to Datacenter → Storage → Add. Good options:
- NFS/SMB share on your NAS — keeps backups off the Proxmox host's disks.
- Directory on a separate physical disk.
- Proxmox Backup Server — if you've set up PBS (see below).
Never store backups only on the same disk as the VMs — a disk failure would take both. Make sure the target has Backup enabled as content type.
Step 2: Create a scheduled backup job
Go to Datacenter → Backup → Add:
- Storage: your backup target.
- Schedule: for example daily at 02:00.
- Selection mode: all VMs, or pick specific ones. Exclude guests that only hold replaceable data.
- Mode:
- Snapshot — minimal downtime (recommended for most). Install the QEMU guest agent in VMs so the filesystem can be frozen consistently.
- Suspend / Stop — for workloads that need a fully consistent, quiesced state.
- Compression: ZSTD is fast and effective.
- Notifications: send a message on failure (and optionally on success).
- Retention: set how many to keep (see next step).
You can also run a backup by hand from the command line, which is handy for testing:
vzdump 100 --storage backup-nas --mode snapshot --compress zstdStep 3: Set sensible retention
Under the job's Retention (or Prune) settings, a good home policy is:
keep-daily=7
keep-weekly=4
keep-monthly=6This keeps a week of dailies, a month of weeklies, and half a year of monthlies — enough to recover from mistakes you notice late, without unlimited growth. PBS deduplication makes this cheap. Mark particularly important backups as protected so pruning never deletes them.
Step 4: Set up Proxmox Backup Server (recommended)
If you can dedicate a machine or VM to PBS:
- Install PBS from its ISO (on separate hardware if possible, or as a VM on separate storage — a PBS VM on the same host it protects will not survive that host's failure).
- Create a datastore on a dedicated disk. Using ZFS or a mirrored pair gives it its own redundancy.
- Create a user or API token with only the permissions needed for backups.
- In Proxmox, add the PBS as storage using its address, datastore name and fingerprint.
- Point your backup job at the PBS datastore.
You now get incremental backups (only changed blocks are sent), automatic deduplication across all VMs, and built-in verification.
Encryption
PBS can encrypt backups on the client side, so the server never sees plain data. When you enable it, Proxmox creates a key. Store that key (and its passphrase) outside the Proxmox host, for example in your password manager — without it, encrypted backups are unrecoverable.
Maintenance jobs
Schedule these on PBS:
- Prune — applies retention.
- Garbage collection — actually frees disk space after pruning.
- Verify — re-reads chunks to confirm backups are intact.
Step 5: Verify and test restores
Backups you've never restored are just hope. Do both:
- Verification: enable scheduled verify jobs in PBS so corruption is caught early.
- Test restore: at least quarterly, restore a VM to a new VM ID, disconnect its network or isolate it, and boot it. Confirm it actually works and the data is current.
# Restore is available in the UI, or via CLI, e.g.:
qmrestore /path/to/vzdump-qemu-100.vma.zst 999 --storage local-zfs
# Containers:
pct restore 998 /path/to/vzdump-lxc-101.tar.zst --storage local-zfsTime the restore, so you know how long a real recovery will take.
Step 6: Get a copy offsite
Local backups protect against disk failure and mistakes, not fire, theft or ransomware that reaches your network. Complete the 3-2-1 strategy by:
- Using a PBS sync job to a remote PBS (a friend's or a cheap hosted instance).
- Or pushing encrypted archives to cloud storage with Restic or similar.
- Keeping at least one copy that the Proxmox host cannot modify, such as a separate account or a different machine with its own credentials, so a compromise of the host can't delete the backups.
Step 7: Monitor and alert
Silent failures are the real enemy. Proxmox can email you on failed jobs; also have a successful job ping an Uptime Kuma push monitor, so a missing success raises an alert. Watch datastore usage so PBS never fills up.
Troubleshooting
- Snapshot mode fails or hangs — the guest may lack the QEMU guest agent; install and enable it, or use suspend mode.
- Backups fill the disk — tighten retention, confirm pruning and garbage collection run.
- Slow backups — use ZSTD, and prefer PBS incrementals over full vzdump to NFS. Check network speed.
- "Permission denied" to NFS/SMB — check export options and credentials; vzdump needs write access.
- Fingerprint mismatch — PBS certificate changed; update the fingerprint in the storage definition.
- Restore boots but app is inconsistent — the guest wasn't quiesced; use the guest agent and database dumps for critical data.
Next steps
Add a monitor that alerts you if a backup job fails, document the full rebuild procedure, and rehearse a restore every quarter. Then explore Proxmox vs VMware if you're comparing platforms.
Articles connexes
Stratégie de sauvegarde serveur domestique qui fonctionne
Planifiez vos sauvegardes avec la règle 3-2-1, testez les restaurations et choisissez des outils comme Restic ou Borg.
How to Set Up Jellyseerr for Media Requests
Install Jellyseerr with Docker, connect it to Jellyfin, Sonarr and Radarr, and set up users, quotas and approvals so your household can request media on its own.
Configurer un VPN WireGuard
Auto-hébergez WireGuard pour accéder à votre homelab en toute sécurité depuis n'importe où.