ProxmoxVirtualizationArchitecture

Proxmox VE Backup for the Enterprise: Architecture, Configuration and Restore

Heitor Faria · 2026-11-25
Backup de Proxmox VE para empresa: arquitetura, configuração e restauração

Proxmox VE is no longer just a lab platform. It now runs production workloads at cloud providers, government agencies and companies that are reassessing the cost of virtualization. Along with the hypervisor comes the question that decides whether the platform fits the business: how does backup work, where is it stored, how long does it take to restore a VM and who proves that the restore works.

This guide describes how NGBackup protects Proxmox VE environments, from the data flow to restoring a VM, with the plugin's parameter names and options, a recommended architecture for two sites and an operations runbook. It is meant both for those evaluating the platform and for those who already have a cluster in production and need to bring its backup into a corporate policy.

What an enterprise backup has to deliver

Copying a VM disk is the easy part. What separates an enterprise backup from a copy routine is the set of guarantees around the copy. In environments subject to audits, customer contracts or regulatory requirements, the list usually includes the items below.

  • A central catalog, which records what was copied, when, from which VM and on which volume, and lets you pick the restore point without searching for files.
  • Retention and scheduling policies per workload type, with Full and incremental backups defined once and applied to every VM in the group.
  • Encryption of the data before it leaves the node, with keys under the company's control.
  • An immutable copy, so that an attack with administrative credentials cannot delete the history.
  • A tested restore, with the time measured, because a backup is only worth what the restore delivers.
  • The same catalog and the same reports for the company's other platforms, such as VMware, Hyper-V, databases, file servers and Microsoft 365.

Proxmox offers vzdump and Proxmox Backup Server, which serve those who use only Proxmox well. When the environment also has VMware or Hyper-V, Oracle and SQL Server databases, file servers and Microsoft 365, the gain is in operating one policy, one catalog and one report for everything, instead of one tool per platform.

How a Proxmox VM backup works internally

Three Proxmox VE and QEMU features underpin any modern VM backup, and they are worth knowing because they explain the behavior and performance you will see.

  • Consistent disk reads: QEMU exposes the disk image at the moment of the backup over NBD, while the VM keeps writing.
  • Changed-block bitmap (dirty bitmap): QEMU marks which blocks changed since the last backup, so the incremental reads only those blocks, without scanning the whole disk.
  • Fleecing: a temporary area receives the VM's writes to the blocks the backup has not read yet, so the VM does not have to wait for the backup and the backup keeps seeing the disk as it was at the start.

Starting with Proxmox VE 8.4 there is also a backup provider API, through which a third-party storage receives the data from vzdump and decides what to do with it. The NGBackup plugin uses this API.

Data flow: the NGBackup client runs on the Proxmox node, reads the disks through QEMU and sends them to the Storage Daemon, which writes to the repositories.
Data flow: the NGBackup client runs on the Proxmox node, reads the disks through QEMU and sends them to the Storage Daemon, which writes to the repositories.

This is the path of a backup job, from start to finish.

  1. The Director triggers the job, and the NGBackup client, installed on the Proxmox VE node, starts the proxmox-backend process.
  2. The backend runs vzdump against a virtual storage provided by the plugin, with fleecing enabled and no compression on the Proxmox side, because compression is applied afterwards by NGBackup, according to the job policy.
  3. The storage plugin, registered in Proxmox, requests each VM disk from the backend through a local socket. The backend reads the QEMU NBD export, also through a local socket, without going over the network.
  4. The data is streamed to the Storage Daemon, with the compression and encryption defined in the job, and written to the chosen volume.
  5. The VM configuration, including firewall rules, is saved along with the disks.
  6. The catalog records the result in @proxmox/vm-<VMID>, with the disks and the configuration, which makes it possible to restore the entire VM or browse its contents.

Because the client runs on the node and talks to QEMU locally, there is no agent inside the VMs. Linux machines, Windows machines and appliances fall under the same policy with nothing installed on the guest system.

Full and incremental with a changed-block bitmap

The backup level comes from the job configured in the Director. A Full job creates the bitmap in QEMU and writes every block of the disk. An Incremental job uses the bitmap and writes only the blocks changed since the previous backup. The bitmap state is kept on the node itself, and the catalog keeps the chain of restore points.

Weekly cycle: one Full on Sunday and incrementals on the other days. Each incremental carries only the blocks that changed.
Weekly cycle: one Full on Sunday and incrementals on the other days. Each incremental carries only the blocks that changed.

In practice, the weekly Full covers the total volume and takes the longest window, while the daily incrementals take smaller windows and little space. Real times depend on the infrastructure: network, VM storage and repository. At restore time, the catalog builds the chain on its own: when you pick Thursday, the system uses the Sunday Full and the incrementals up to that date.

Requirements and installation

  • Proxmox VE 8.4 or 9.x, on Debian 12 or 13. Because it uses the backup provider API, the minimum version is 8.4.
  • The NGBackup client installed on every node that will run backups, together with the Proxmox plugin, the backend and the storage plugin. The packages follow the installation flow of the NGBackup repository.
  • A fleecing area on the node's local-lvm storage, where Proxmox keeps the VM's writes during the backup.
  • Access to Proxmox: in local mode the plugin uses the node's own pvesh, with no credentials; in api mode it uses a username and password with TLS certificate fingerprint verification.
  • An optional configuration file at /opt/ngbackup/etc/proxmox.conf. The order of precedence is the plugin line, then the file, then the default values.

The plugin lists the VMs of all online nodes in the cluster through the Proxmox API, which lets you build the jobs from a single point and have each node's client take care of the VMs running on it.

Configuring the backup

VM selection happens in the FileSet, with a plugin line. The example below protects every VM in the cluster except the template with ID 9000, requesting quiesce through the QEMU agent.

FileSet {
  Name = "PVE-Producao"
  Include {
    Plugin = "proxmox: vm=* exclude=9000 quiesce=yes"
  }
}

For a specific group, list the IDs separated by commas, as in vm=100,101,102, or limit it to one node with node=pve02. The weekly Full and the daily incrementals are defined in the job's Schedule, as with any other workload protected by NGBackup.

If you prefer not to write the configuration by hand, you can use the Automation page of the web console. It connects to the Proxmox endpoint, discovers the VMs and creates the jobs from the discovered list.

Automation page of the web console: the discovery source type (proxmox, vSphere or CloudStack), the endpoint and the credentials.
Automation page of the web console: the discovery source type (proxmox, vSphere or CloudStack), the endpoint and the credentials.

Plugin parameters

GroupParameterPurpose
SelectionvmVMs to protect: * (default), an ID, a list or a wildcard pattern.
SelectionexcludeVMs left out of the selection.
SelectionnodeLimits the selection to the VMs on one node.
Connectionpve_modeauto, local or api. In local mode, the plugin uses the node's pvesh.
Connectionpve_host, pve_port, pve_user, pve_realmAddress, port (8006 by default) and user (root@pam by default) for api mode.
Connectionpve_fingerprint, pve_insecureTLS certificate verification by fingerprint, or skipping it in a lab.
BackupquiesceConsistency through the QEMU agent. The default is yes.
Backupconfig_filePath of the plugin configuration file.

Consistency inside the VM

With the QEMU Guest Agent installed in the VM and quiesce=yes, the file system is frozen for an instant during the snapshot, and the backup is file-system consistent. Without the agent, the backup is still taken and is crash-consistent, as the VM would be after a power loss, a situation that modern file systems and databases know how to recover from. For databases with point-in-time recovery requirements, the recommended path is to protect the database with its own plugin inside the VM, the subject of our SQL Server and PostgreSQL backup guide.

Restore: from an entire VM to a single file

Restores happen in the web console's Restore Studio, which brings together the most commonly used paths. It offers full VM restore, granular restore, database restore and file restore, and three ways to choose the point in time: the most recent backup, a specific backup or a date, in which case the system resolves the chain of Full and incremental backups on its own.

Restore Studio: the restore modes (full VM, granular, database, files) and the three ways to choose the point in time.
Restore Studio: the restore modes (full VM, granular, database, files) and the three ways to choose the point in time.

Restoring the VM

The plugin restores through Proxmox's native mechanism. By default, the restore puts the VM back on its original ID, stopping the target VM before writing. To test without touching production, restore with a different ID, a different name and the network disconnected. The options go in the plugin options field.

OptionEffect
overwrite_vmidID of the target VM. With a new ID, the restore creates a copy next to the original.
sequential_vmidUses the next free ID in the cluster.
restore_nameName of the restored VM.
storage, restore_pathProxmox storage that receives the restored disks.
restore_networkkeep, disconnect or remap:source=target_bridge.
start_vmPowers on the VM at the end of the restore.
pool, restore_tagsPool and tags applied to the restored VM.
restore_descriptionVM description; with the value auto, the plugin records the data of the source job.
restore jobid=1234 where=/ pluginoptions="proxmox: overwrite_vmid=990 restore_name=app01-teste restore_network=disconnect start_vm=no" yes

This command restores job 1234 as VM 990, named app01-teste, without powering it on and without connecting it to the network, a safe combination for the monthly restore test.

Restoring files without restoring the VM

Granular restore opens the backup image and lets you browse the contents of the Linux VM to recover a file or a folder, without restoring the whole machine. This is the path for the recovery request from the user who deleted a spreadsheet: the file comes back without taking the VM down.

Cross-restore: bringing VMware and Hyper-V VMs to Proxmox

The Proxmox plugin also restores backups that NGBackup took on VMware vSphere and Hyper-V as Proxmox VE VMs. This is cross-restore: the catalog records the origin of each backup (@vsphere or @hyperv), and on restore the plugin recognizes the origin, converts the disks when needed and creates the VM on Proxmox, without touching the source VM.

  • There is no special job type: the restore job is the same, and the origin is detected automatically.
  • The backup history from before the migration stays in the same catalog and stays valid.
  • The VM arrives on Proxmox with disk, network and boot configured for the target, and the validation pilot checks each VM type.

The full runbook, with pilot, migration waves and checklist, is in the guide Leaving VMware Without Losing Your Backups.

Recommended architecture for two sites

For production environments, we recommend the architecture below. It follows the 3-2-1-1-0 rule: three copies, on two different media, one off-site, one immutable and zero errors on verification.

Recommended architecture: local repository, copy at the second site, bucket with Object Lock and a scheduled restore test.
Recommended architecture: local repository, copy at the second site, bucket with Object Lock and a scheduled restore test.

Local repository

It sits at the same site as the cluster, so day-to-day restores use the local network. It is the copy that serves most requests.

Copy at the second site

A second NGBackup server receives a copy of the backups. If the main site becomes unavailable, recovery starts at the second site.

Bucket with Object Lock

The immutable copy in S3 with locked retention prevents compromised credentials from deleting the history within the defined period.

Restore test

A lab node restores one VM from each criticality tier on a fixed calendar, and the measured time is recorded.

Design decisions worth making

  • Separate administration: the backup server sits on a different network and in a different administrative domain from the cluster, so that a compromise of the cluster does not reach the backups.
  • Criticality tiers: three retention bands cover most environments. One example is 14 days of dailies for everything, 8 weeks of weeklies for business systems and 12 months of monthlies for those with audit requirements.
  • Windows per tier: the Full of the largest VMs goes to the weekend, and the incrementals run overnight.
  • A single console: with two sites, the web console shows the jobs, volumes and alerts on both sides.

Replication and disaster recovery

Besides backup, NGBackup replicates Proxmox VMs to a disaster recovery site. Replication is a job type in the Director, with its own cycle and a queue separate from backups, so one does not delay the other.

The first cycle creates the full replica. The following ones send only the changed blocks, read from the same QEMU dirty bitmap used by the incrementals, over an encrypted transport (mutual TLS or a pre-shared key), with bandwidth limiting and automatic retry.

  • A replica already provisioned at the DR site: failover is powering on the VM, not restoring a backup.
  • Planned failover (with a final cycle and a clean shutdown of the source), unplanned, test in an isolated environment, undo, permanent, failback and re-protect.
  • Cycles and failovers are recorded in the catalog, which keeps the operation auditable.

The recovery point (RPO) is set by the cycle interval, and the recovery time (RTO) depends on the replica already being ready and on the infrastructure of the DR site: network, storage and hypervisor. The replica delivers continuity; the backup keeps the history and the immutable copy, and the two complement each other. The details are in the replication datasheet.

Day-to-day operations

A well-configured backup still needs monitoring. The routine below fits in a few minutes a day and one afternoon a month.

FrequencyActivityWhat to look at
DailyWeb console dashboardJobs with errors, jobs that did not run and capacity alerts.
WeeklyReview of the FullsFull duration relative to the window; repository growth.
MonthlyRestore testRestore one VM per criticality tier, power it on without a network, validate the service and note the time.
QuarterlyRetention reviewWhether the retention bands still match business and audit requirements.
SystemTierLast restore testMeasured timeTarget
______________________________
______________________________

Deployment in six steps

The safest way to put backup into production is to start with a small group and expand after measuring. The runbook below is the same one we use in the PoC.

  1. Inventory: list the VMs, the disks of each one and the criticality. Mark templates and disposable VMs to be left out with exclude.
  2. Installation: put the client and the plugin on each node and confirm that the node reaches the Storage Daemon on the network chosen for backup.
  3. Pilot group: create the FileSet and the job for three to five VMs with different profiles, for example a Linux application server, a Windows machine and a VM with several disks.
  4. First Full: run it and note the duration and the effective throughput. That number feeds the sizing of the windows.
  5. Incrementals: let them run for a few days and observe the volume generated per VM, which shows the real change rate.
  6. Restore test: restore each pilot VM with a different ID and the network disconnected, power it on and validate the service. Only then expand to the rest of the cluster.

Performance: what affects backup time

The time of a VM backup is the lowest capacity in a chain: reading the VM disk, processing on the node, the network to the Storage Daemon and writing to the repository. The bottleneck is usually in one place, and finding which one is the first step of tuning.

  • Network between the node and the Storage Daemon: it usually limits the Full. A network dedicated to backup, 10 GbE or faster, separates backup traffic from production traffic.
  • Writing to the repository: the Storage Daemon writes sequentially, and disks or storage with good sequential throughput perform better than those optimized for small operations.
  • Fleecing area: during the backup, the VM's writes to blocks not yet read go to local-lvm. VMs with heavy writes use this area more, and the storage has to absorb them.
  • Compression: it reduces traffic and the space used, and it consumes node CPU. On nodes with spare processing capacity, it is worth enabling.
  • Concurrency: several jobs at the same time share the same network. Staggering the Fulls across the week, instead of running them all on Sunday, evens out usage and shortens the windows.

The most reliable way to size is to measure in the pilot: the first Full shows the effective throughput of your environment, and the incrementals show the real change rate, with the job compression already applied.

Security: encryption, immutability and access

  • Encryption: data is encrypted on the client, before it leaves the node, with AES and keys from a PKI pair under the company's control. Keep a copy of the keys outside the backup server, because without them no restore is possible.
  • Immutability: the copy in an S3 bucket with Object Lock keeps the retention locked for the defined period, even for those with administrative credentials.
  • Access to Proxmox: in local mode the plugin needs no stored credentials, because it uses the node's own pvesh. In api mode, TLS certificate fingerprint verification prevents connections to a fake address.
  • Separation of duties: operators who monitor the jobs and administrators who change retention and keys use different accounts in the console.

Retention and capacity

The space required grows with the number of restore points kept. An initial estimate is the size of one Full, plus the incremental volume multiplied by the retention days of each band, summed across all tiers. Compression and deduplication reduce that total, and the real reduction depends on how similar the VMs are and on the type of data, which the pilot shows.

Reserve a margin of 20% to 30% over the estimate and review repository growth every month. When the projection shows less than three months of headroom, plan to expand the repository or to move the oldest copies to the cloud bucket.

Three environment profiles

ProfilePoints of attentionSuggested setup
Cloud provider or MSPMany VMs from different customers, tight windows and per-customer reports.Separate jobs per customer, Fulls staggered across the week and an immutable copy for the contracts that require it.
Government agencyRetention defined by regulation, a requirement for a national vendor and auditing.Three retention bands, an immutable copy, restores tested monthly with the time recorded.
Mid-sized companyOne site, a lean team and a limited storage budget.Local repository, a daily copy to the cloud bucket and a quarterly restore test.

When NGBackup makes sense for Proxmox

  • The environment mixes platforms, and the company wants one catalog, one retention policy and one report for everything.
  • There is a requirement for an immutable copy, encryption with your own keys or an audit trail.
  • There is a plan to migrate from VMware to Proxmox, and the backup history has to follow the VMs. The guide "Leaving VMware Without Losing Your Backups" describes that path.
  • The vendor has to be Brazilian, with support in Portuguese and a contract in reais.

Frequently asked questions

Do I need to install an agent inside the VMs?

No. The NGBackup client runs on the Proxmox node and reads the disks through QEMU. Linux machines, Windows machines and appliances are protected with nothing installed on the guest system.

Does the plugin work with a cluster?

Yes. The plugin queries the cluster API and lists the VMs of all online nodes, and the client installed on each node protects the VMs running on it.

Which Proxmox versions are supported?

Proxmox VE 8.4 and 9.x, which include the backup provider API used by the plugin.

How do I know the restore will work?

By testing before you need it. The operations runbook above includes a monthly test with the time measured. In our free PoC, the NGBackup team runs this test in your environment, with your VMs.

Next step

The NGBackup free PoC is deployed by our team in your environment, at no cost and with no commitment: you provide a Linux machine, a test storage and VPN access, and we install, configure and run backup and restore of your Proxmox VMs. If you prefer to start on your own, the Community edition is free. The full description of the plugin is on the Proxmox plugin page.