Skip to main content

Full backups

A full backup exports the complete VM, all of its disks and its configuration, to a backup repository (BR) on every run. Each run produces a single, self-contained XVA archive: no chain, no dependencies between runs. The mental model is simple, and so is the restore, since any one archive is enough to bring the whole VM back.

note

In the XO 5 interface, backup repositories are still labeled Remotes. A BR can be local to XOA, or an NFS or SMB share.

XCP-ng hostVMSnapshotdeleted after exportXVA exportBackup repository (BR).xvaday 1rotated out.xvaday 2.xvaday 3.xvaday 4
Full backup: snapshot the VM, export it as an XVA archive to the BR, rotate out the oldest archiveVMXVA archiveDeleted by retention

How it works

  1. Snapshot first. Xen Orchestra takes a snapshot of the VM, so the VM keeps running during the whole backup.
  2. Export as XVA. The snapshot is exported to the BR as an XVA archive. Only allocated blocks are transferred, not the full virtual size of the disks.
  3. Snapshot cleanup. Once the export is complete, the snapshot is deleted from the host.
  4. Retention. Each schedule has a retention setting: when the number of archives on the BR exceeds it, the oldest export is deleted.

Compression

You can optionally compress the export in the backup job settings:

  • gzip: works everywhere, slower.
  • Zstd: faster and more efficient, available when the host supports it (XCP-ng 8.1 and later).

Compression reduces the size of each archive on the BR at the cost of some CPU time on the host during the export.

Restore

Every archive is self-contained, so any backup restores on its own: there is no chain to rebuild and no dependency on other backups. Pick the archive you want in the Restore view and import it on the pool and SR of your choice.

Since the result is a plain XVA file, it can also be imported anywhere, even without the backup job: download the file from the BR and use the Import menu in Xen Orchestra (or any other XVA import method) to recreate the VM.

Backup without snapshot

In some cases you need to back up a VM without taking a snapshot first. The most common use case is a large VM stored on a small or thickly provisioned SR, where there simply isn't enough free space to hold a snapshot.

For this, open the advanced settings of your backup job and enable the Offline backup checkbox. The VM is then exported directly, without a snapshot.

warning

With offline backup enabled, the VM is shut down for the whole duration of the export, then started again once it completes. Plan for this downtime when scheduling the job.

tip

Full backups are storage and bandwidth hungry: each run transfers and stores a complete copy of the VM, with no deduplication between runs. In exchange, you get the simplest possible restore. To use less space and transfer less data, look at incremental backups, and see the backup strategy guide to choose the right approach for your infrastructure.