2.10.1. Creating Virtual Machine and Container Backups

You can use the prlctl backup command to back up virtual machines and containers. By default, an incremental backup is created that contains only the files changed since the previous full or incremental backup. If you are backing up a virtual machine or container for the first time, a full backup is created. To force a full backup of a virtual machine or container, add the -f option after the command. For example, you can execute the following command to create a full backup of the virtual machine MyVM:

# prlctl backup MyVM -f
...
The VM has been successfully backed up with \
backup id {746dba2a-3b10-4ced-9dd6-76a2blcl4a69}

The backup ID, like shown in the example above, is used to manage the backup.

By default, all newly created backups are placed in the /vz/vmprivate/backups directory. To set a different default backup directory, use the prlsrvctl set --backup-path <path> command.

Note

Notes:

  1. You can back up both running and stopped virtual machines and containers.
  2. Creating a consistent backup of a running virtual machine requires the Virtuozzo guest tools to be installed in said virtual machine.
  3. You cannot back up virtual machines with attached physical HDDs, mounted ISO or floppy disk images, etc.