Local or remote backups of virtual machines and containers can be restored with the prlctl restore command.
The following rules and considerations apply:
- Restore commands are run on the destination server (to which the backups will be restored).
- Only stopped virtual machines and containers can be restored from backup.
-
Virtuozzo 6 backups can be restored to Virtuozzo 7 servers.
- Backups of virtual machines and containers with guests unsupported in Virtuozzo 7 may not be restored correctly (see Section 2.1.4, “Supported Guest Operating Systems”).
- VZFS-based containers must be converted to ploop format and backed up again before they can be restored to Virtuozzo 7.
To restore a backup of the virtual machine MyVM with the UUID a53f1184-333e-41cf-b410-2ec8ffea67d4 , run
# prlctl restore MyVM
or
# prlctl restore a53f1184-333e-41cf-b410-2ec8ffea67d4
If multiple backups of a virtual machine exist, the latest one is restored. To restore a particular backup, specify its ID with the -t option. For example:
# prlctl restore -t 24a3011c-8667-4870-9e11-278f1398eab0
If backups are stored on a remote server and the VM or container to be restored does not exist on the destination server, you can restore it by specifying the backup ID with -t and that server’s IP address or hostname with the -s option. For example:
# prlctl restore -t 24a3011c-8667-4870-9e11-278f1398eab0 -s 192.168.0.10
If the VM or container already exists on the destination server (e.g., has been restored from a remote backup once), you can also restore its latest backup by specifying the VM or container’s name or UUID.
If necessary, you can transfer remotely stored backups to the local server and restore them locally. To do this:
-
Find out the default backup directories on the source and destination servers by running
prlsrvctl info | grep "Backup path"on each. - Copy backups to the default backup directory on the destination server. Or, if you keep backups on a network storage, attach said network storage to the default backup directory on the destination server.
-
Restore the backup with the
prlctl restore -tcommand as shown in the example above.