What you will set up
BackupZit backs up Proxmox VE virtual machines (QEMU) and containers (LXC) without installing anything inside the guests. A small agent runs on each Proxmox node, takes a temporary snapshot of every guest, reads its disks and stores them on the storage you choose. A web console schedules the jobs, keeps the history and runs the restores.
- What you need
- 1. Console
- 2. Storage
- 3. Agent on the node
- 4. Backup job
- 5. Consistent backups
- 6. Off-site copy
- 7. Restore tests
- Restoring
- Host configuration
- Limits
Proxmox VE has its own backup tools too: vzdump and the Proxmox Backup Server. If you run only Proxmox, they are a good, free choice. BackupZit is worth a look when you want one console for Proxmox and Windows and Linux servers, VMware, Hyper-V, databases and Microsoft 365, or features such as boot-tested backups and replicas to another cluster.
What you need
- One or more nodes with Proxmox VE 7, 8 or 9 (they are Debian based, so the Debian agent package fits).
- A place for the BackupZit console: a small Linux VM with 2 vCPU, 2–4 GB RAM and a 16–20 GB disk. The console stores no backup data itself, so it can run as a VM on the same cluster.
- Backup storage outside the Proxmox node — for example a Linux server or NAS reachable over SFTP, an SMB share, an S3-compatible bucket or a BackupZit hardened repository. The agents write to it directly.
- Network: the agents reach the console on TCP port 8443.
Step 1 — Install the console
The quickest way on Proxmox is the ready-made appliance image backupzit-appliance.qcow2 from the download page (Debian, PostgreSQL and the console, already set up):
- Create a VM without a disk: 2 vCPU, 2–4 GB RAM, VirtIO network.
- Copy
backupzit-appliance.qcow2to the node and import it as the VM's disk (replace<vmid>):qm importdisk <vmid> backupzit-appliance.qcow2 local-lvm - Attach the imported disk as SCSI, make it the boot disk and enable the QEMU guest agent in the VM options.
- Start the VM. Its screen shows the address of the web console and the initial password of the user
admin. Openhttps://<address>:8443, sign in and change the password.
On the VM's own screen you can sign in as bzadmin (its password is shown on the VM's screen and is random for each appliance) to set a static address, the server name and the time zone (the appliance starts in UTC, and schedules run in the console's time zone). Prefer an existing Debian, Ubuntu, AlmaLinux or Rocky Linux server? The one-line install script on the download page does the same there.
Step 2 — Add a storage target
In the console open Storage and add a target. Typical choices for Proxmox backups:
| Type | Good for |
|---|---|
| SFTP | Any Linux server or NAS with SSH; the server's host key is pinned. |
| SMB share | Windows file servers, Synology or QNAP NAS (SMB 2/3). |
| S3 compatible | Off-site copies: AWS S3, Wasabi, Backblaze B2, MinIO, Ceph; immutable with Object Lock. |
| Hardened repository | A Linux server running backupzit-repo: backups cannot be deleted before their immutability period ends. |
Leave Encrypt backups on (the default): everything is encrypted with AES-256-GCM on the node before it leaves it. The console then shows a recovery key — print the recovery sheet or put the key in a password manager, away from the backups. With the key, the storage location and its credentials you can restore even if the console is lost; without the key nobody can read the backups.
Speed: on SMB, SFTP and local disks the agent writes two packs at once (agents 0.62 or newer) — in gtawelt's measurement a VM backup to an SMB share went from 101 to 120 MB/s — and VM restores read up to three blocks ahead (agents 0.61 or newer), so the network and the target disk work at the same time.
Step 3 — Install the agent on every node
- In the console open Agents and click Create enrollment token. You get an enrollment code (
BZ1-…) that is valid for 7 days and works for any number of machines. - Download the Linux agent — Debian / Ubuntu package from the Agents page to the node and run:
apt install ./backupzit-agent_*.deb backupzit-agent enroll --code "BZ1-..." systemctl enable --now backupzit-agent - Within a minute the node appears on the Agents page with the badge Proxmox VE · N guests.
The agent uses the node's own tools (qm, pct, pvesm, LVM, ZFS, Ceph). No Proxmox API token or root password is stored in the console. In a cluster, install the agent on every node.
Step 4 — Create the backup job
- Open Backup jobs, create a job and select the node's agent.
- Choose Virtual machines (Proxmox VE, Hyper-V, VMware), then All VMs (and containers) on the host — guests created later are included automatically — or tick individual guests. To leave out single guests, for example the VM of the BackupZit console, choose All VMs (and containers) on the host except the ticked ones and tick them; guests created later are included too.
- Pick the storage target from step 2.
- Set a schedule, for example every working day at 22:00. Jobs can also repeat every 15 minutes to 12 hours, run once a month, or start after another job has finished.
- Set the retention. Example: 3 most recent, 7 daily, 4 weekly, 6 monthly keeps about half a year of history with around 20 restore points. Yearly keeps the newest backup of each of the last N years (agents 0.62 or newer).
What happens in each run:
- A temporary Proxmox snapshot (
backupzit_…) is taken; the guest keeps running. - Every disk is read from the snapshot in 1 MiB blocks. Empty blocks are not stored, and blocks that are already in the repository are not uploaded again — after the first backup, only changed data travels over the network. Each backup is still a complete restore point. 1 MiB is the default (see Block size below).
- Running VMs with disks on LVM-thin, ZFS, Ceph RBD or qcow2 also get changed block tracking (QEMU dirty bitmaps, since BackupZit 0.44): from the second backup on, only the areas written since the previous backup are read — seconds instead of minutes. After a VM was stopped, restarted or moved to another node, the next backup reads its disks completely once; the run page shows which disks were read as changed blocks only. The same applies after a disk was resized.
- The snapshot is removed. The guest configuration (CPU, memory, network, disks) is stored with the backup.
Because unchanged data is stored only once, long retention costs little extra space.
Block size: virtual disks are stored in 1 MiB blocks by default. Under Advanced → VM deduplication block size a job can use 256 KiB or 512 KiB instead; smaller blocks can store less for VMs with scattered changes, at the cost of more metadata. After a change every disk is read in full once, then incremental backups continue, and older backups stay restorable. A job with a smaller size needs agents 0.51.0 or newer.
A guest that cannot be backed up (also after the retries) makes the run end as failed, and the run names it, so it is not lost among warnings. The other guests are kept and can be restored, and retention is skipped, so the older restore points of that guest stay.
Progress: while a backup runs, Activity and the run page show the VM it is on (VM 2 of 4: name, agent 0.57 or newer), the speed and the time left (0.62), and the run page lists the VMs finished so far with their result.
Snapshots and locks that stay behind: the agent records each backup snapshot, and the backup lock of a stopped guest, and after a crash or power loss removes them itself when it starts and every 15 minutes; guests for which Proxmox VE runs a task (a vzdump backup, a migration) are left alone. backupzit_… snapshots older than a day without a record (from older versions) are removed too, your own snapshots never. A backup lock BackupZit did not set is never removed; the message names qm unlock (pct unlock). What cannot be removed is listed on the dashboard under Needs attention with Remove now (agent 0.56).
VM backups per storage target: VM backups in the storage list shows every VM and container with restore points on a target, also guests whose job was deleted or no longer selects them; those are marked no job and listed on the dashboard under Needs attention. A restore point that holds only that guest can be deleted there (password or two-factor code, and four-eyes approval when it is on); a point that also holds other guests stays until the job's retention removes it. If that job was deleted, the whole restore point can be deleted there, together with the backups of the other guests in it, which the page names next to it (0.62.2). The console refuses the deletion while the job's retention is paused after a suspicious backup and while a VM runs from a backup in the same repository (instant recovery); if the repository was removed from the storage by hand and nothing is left at its location, deleting its restore points only removes them from the console (0.63).
Which disks can be backed up while the guest runs
| Proxmox storage | Backup of a running guest |
|---|---|
LVM-thin (local-lvm) | yes, from a snapshot |
| ZFS (VM disks / zvols) | yes, from a snapshot |
| ZFS (container subvolumes) | yes, file by file from a snapshot |
| Ceph RBD | yes, from a snapshot |
| Directory, NFS, CIFS with qcow2 | yes, from a snapshot |
| Directory, NFS, CIFS with raw; thick LVM | no — stop the guest or move the disk |
Stopped guests can be backed up on all of these. Disks marked Backup: no (backup=0), passed-through physical disks and bind mounts are skipped and reported as warnings.
Containers on ZFS
On a ZFS storage, Proxmox keeps container volumes as datasets (subvol-<ID>-disk-N) — file systems, not virtual disks. Since BackupZit 0.53 the agent backs these containers up file by file from a temporary ZFS snapshot while they run. Owners (also the shifted IDs of unprivileged containers), permissions, times, extended attributes and ACLs, hard and symbolic links and device files are kept; sockets are left out, as with vzdump. From the second backup on, only files whose size or modification time changed are read. The node needs agent 0.53.0 or newer.
Such a container is restored onto a ZFS storage as new subvolumes. Its files can be browsed, downloaded and restored into a folder like those of a file backup, and the automatic restore tests restore random files from it. Container volumes that are plain directories on other storage (directory, NFS, CIFS) are not supported, and containers backed up file by file cannot have replicas.
Step 5 — Make the backups application consistent
If the QEMU guest agent runs inside a VM and is enabled in its options, Proxmox freezes the VM's file systems for the snapshot, so databases and other applications are captured in a clean state. Without it the backup is crash consistent — like after a power loss.
In a Debian or Ubuntu VM:
apt install qemu-guest-agent
systemctl enable --now qemu-guest-agent
In Windows VMs install the VirtIO guest tools. Then enable the agent for the VM on the node (it takes effect after the next full stop and start of the VM):
qm set <vmid> --agent enabled=1
The run page of each backup shows, per guest, which disks were read and how the guest was captured.
Step 6 — Keep an off-site copy (3-2-1)
The 3-2-1 rule: three copies of your data, on two different media, one of them off-site. Add a second job of the kind Backup copy, select the Proxmox job as its source and an off-site target, such as an S3 bucket with Object Lock or a hardened repository in another building.
- The agent copies the existing backups; the VMs are not read again.
- Only data that is not yet at the destination is sent, encrypted with the destination's key.
- By default the copy runs after each backup of the source job; any schedule works, e.g. once a night for a slow line.
- The copy has its own retention, e.g. 7 daily on the NAS and 12 monthly in the cloud.
- While a copy runs (agents 0.62 or newer), its page shows the backup being copied, the data copied of the exact total, the speed and the time left; if no data moves for 30 minutes, the run warns and one notice goes out. The agent reads the source pack by pack with several requests at once, and the finished run shows how fast the source was read and the destination written. A source backup that cannot be read (damaged data at the source) is left out and named in the run, which ends with a warning; the others are still copied (agents 0.63 or newer).
VMs can be restored from the copy like from the original — whole VMs, single files and instant recovery. More about immutable copies on the ransomware protection features.
Step 7 — Prove that the backups boot
Readable blocks do not prove that a VM still starts. Under Settings → Restore tests switch on Boot test for Proxmox VM backups. The restore test then starts every VM of the newest backup on the job's node, one after another, directly from the backup, with a new ID and its network cards disconnected so it cannot conflict with the original — and deletes it again afterwards.
- A VM passes when its QEMU guest agent answers in time, which means the operating system booted. VMs without the guest agent pass when they keep running for a minute and are shown as running rather than booted.
- Checks inside the VM (agents 0.61 or newer): a VM that boots can still be broken, or already compromised when the backup was made. Under Boot test checks in the job list what must work in the booted copy, one per line:
service sshd,file /var/www/index.html,port 443orcommand …(your own command, exit code 0 passes);101: service nginxapplies to one VM only. They run through the QEMU guest agent inside the isolated copy. - Also boot-test the oldest backup the job keeps boots the restore point you would fall back to after an unnoticed compromise. A backup whose VMs booted and passed their checks is marked verified.
- The copy leaves out settings that reach outside the VM — a hook script, raw QEMU arguments, passed-through PCI and USB devices, host shares and serial or parallel ports on host devices — and the run page names them.
- The node needs free memory for one more VM while the test runs.
- In addition, a data check (monthly by default) reads every piece of stored data and verifies it against its checksum, to find damage on the storage itself before you need the backup.
Restoring
Open a backup run (from the job page or Activity) and choose Restore a VM or container.
Whole VM or container
- Restore on any node with the agent — also a node of another cluster.
- As a new guest with the next free ID (default) while the original keeps running; the copy gets new MAC addresses. Or with the original ID after the guest was deleted, optionally replacing an existing one.
- When the restore replaces an existing guest with its original ID (agent 0.59 or newer), the disks of the backup are written first while the guest keeps running, and the guest is replaced only after all data has been read: if the restore fails, the guest stays as it was. The storage therefore needs room for both for a while; the restore checks that first and keeps 5 % (at least 1 GiB) free. With Delete it before the disks are written the guest is deleted first, the old way, for storage without room for both.
- Choose the name and the storage for the disks, and whether to start the guest after the restore.
- Settings that act on the host (hook script, raw QEMU arguments, passed-through PCI and USB devices, raw LXC keys) are kept when the guest goes back to the node it was backed up on; on another node they are left out unless Keep settings that act on the host also on another node is ticked (agents 0.62 or newer).
- Every restore gives VMs a new generation ID (
vmgenid), so Windows domain controllers detect the rollback safely.
Instant recovery: the VM runs in seconds
A normal restore takes as long as copying the disks. With Instantly, running from the backup the agent serves the disks read-only from the backup and starts a new VM whose writes go to local overlays. When you are satisfied, Finish moves the disks to the chosen storage while the VM keeps running (qm disk move); Discard VM deletes the VM and its changes. The VM is as fast as the backup storage, so a repository on a local disk or a fast network share works best. Instant recovery is for VMs, not containers.
Single files
Click Browse files in the guest table of a backup run. The console reads the disk straight from the backup — nothing is restored first — and lets you browse NTFS, ext2/3/4, XFS and btrfs, also inside LVM. btrfs looks as with the top-level subvolume mounted: subvolumes and snapshots are folders, and files compressed with zstd, LZO or zlib are read normally; btrfs spread over several disks (btrfs RAID) cannot be browsed and gives a clear error. Download files (several as a ZIP) or restore them to a folder on any agent. Browsing in the console needs the backup on network storage (SFTP, S3, SMB, Azure or a hardened repository); storage Reachable by agents only is read through an agent that uses it (agents 0.61 or newer).
Replicas for the most important guests
Under Advanced in the job, Keep replicas of the VMs keeps a stopped copy of every guest up to date on another node or cluster after each backup. Only changed blocks are written — typically a few seconds per backup. If a guest is lost, Start replica runs it with the data of the last backup, without a restore.
From the command line
Everything also works without the console, for example to rebuild a node after a disaster:
backupzit-agent pve list
backupzit-agent pve show --repo ... latest
backupzit-agent pve restore --repo ... --vmid 100 --new-vmid -1 --storage local-lvm --start latest
Backing up the Proxmox host itself
The guests are only half of a node: storage definitions, network, users, firewall, certificates and the settings of every VM and container live in its configuration. Back it up with an ordinary files job on the node's agent: on Backup jobs choose the node's agent and Files and folders, then click Fill in the host configuration. It enters /etc (with /etc/pve, the network and /etc/hosts), /var/lib/pve-cluster (the configuration database config.db) and /root; run the job e.g. daily. Because the database changes while the node runs, the agent first makes a consistent copy of it, which the backup contains as /var/lib/backupzit/pve-config/config.db; no extra packages are needed (since BackupZit 0.44).
To rebuild a failed node: install the same Proxmox VE version with the same host name and address, install the agent, restore /etc/network/interfaces and /etc/hosts, stop the cluster service (systemctl stop pve-cluster), delete config.db-wal and config.db-shm in /var/lib/pve-cluster if they exist, restore the copy from /var/lib/backupzit/pve-config into /var/lib/pve-cluster (config.db, and config.db-wal if the backup has one), start the service again and then restore the guests. In a cluster, join a reinstalled node to the cluster again instead of restoring config.db.
Limits to know
- Supported are Proxmox VE 7, 8 and 9. XCP-ng is not supported.
- Containers on ZFS are backed up file by file from a snapshot (from the second backup on, only changed files); replicas of them are not supported. Container volumes that are plain directories on non-ZFS storage (directory, NFS, CIFS) are not supported.
- Raw disks on directory, NFS or CIFS storage and disks on thick LVM can only be backed up while the guest is stopped.
- In a cluster, a job backs up the guests on its own node. A guest that was migrated to another node is reported as a warning — use All VMs (and containers) on the host on every node so migrated guests stay covered.
- Cloud-init drives are not stored; they are recreated from the configuration on restore.
Next steps
BackupZit is free and open source (AGPLv3), without limits on VMs or nodes. Download it, see all Proxmox features, or read the full chapter Proxmox VE virtual machines in the user guide in the console. Questions are welcome in GitHub Discussions; companies can get commercial support from MaxZit.