.. _Restoring Virtuozzo 6 Backups to Virtuozzo 7 Servers:

Restoring Virtuozzo 6 Backups to Virtuozzo 7 Servers
====================================================

Virtuozzo 7 supports restoring backups of Virtuozzo 6 VMs and containers to Virtuozzo 7 servers.

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.

-  Windows VMs without installed Virtuozzo guest tools cannot be restored from Virtuozzo 6 backups (or backed up to Virtuozzo 7).

-  Backups of virtual machines and containers with guests unsupported in Virtuozzo 7 may not be restored correctly.

-  VZFS-based containers must be converted to ploop format and backed up again before they can be restored to Virtuozzo 7.

To restore a specific backup of a Virtuozzo 6 VM or container stored on a remote Virtuozzo server, do the following:

1. Find out the backup ID by listing backups stored on the remote server:

   ::

       # prlctl backup-list -s root@<backup_server>

2. Specify the found backup ID in the restore command:

   ::

       # prlctl restore -t <backup_ID> -s root@<backup_server>

To restore a remotely stored backup of a Virtuozzo 6 VM or container after said VM or container has been migrated to a Virtuozzo 7 server, run

::

    # prlctl restore <VM_or_CT_name_or_UUID> -s root@<backup_server>

To copy a Virtuozzo 6 VM or container backup to a Virtuozzo 7 server and restore it there, do the following:

1. Find out the backup ID by listing backups stored on the Virtuozzo server:

   ::

       # prlctl backup-list root@<backup_server>

2. Find out the default backup directory on the Virtuozzo 7 server:

   ::

       prlsrvctl info | grep "Backup path"

3. Copy backup files to the default backup directory on the Virtuozzo 7 server. For example, if backups are stored in the default directory on a Virtuozzo 6 server, run:

   ::

       # scp -r root@<VZ6_server>:/var/parallels/backups/<VM_UUID> \
       /vz/vmprivate/backups/

   Or, if you keep backups on network storage, attach said network storage to the default backup directory on the Virtuozzo 7 server. For example, if you store backups on an NFS share, mount this share to ``/vz/vmprivate/backups/``.

4. Restore the copied backup:

   ::

       # prlctl restore -t <backup_ID>

