Article ID: 117747, created on Oct 6, 2013, last review on Jun 17, 2016

  • Applies to:
  • Virtuozzo
  • Virtuozzo containers
  • Virtuozzo hypervisor
  • Virtual Automation

Question

How do I restore a container from a backup on the same host, using a different container ID, through PVA XML API request?

Answer

IMPORTANT: Before using this method, make sure you are using the latest available version of PVA Agent.

The following XML API request can be used for this task :

<packet>
<target>backupm</target>
<data>
<backupm>
<restore_env>
<backup_id>7530d863-15fc-394a-a602-6fd564d5d067/20130922192727</backup_id>
<restore_options/>
<backup_server>
<login>
<realm>00000000-0000-0000-0000-000000000000</realm>
</login>
</backup_server>
<parent_eid>0d4c4e88-d27c-2541-be2f-4060f288a992</parent_eid>
<target>9aac7412-dc88-4d02-8bb9-9874f0167ee4</target>
</restore_env>
</backupm>
</data>
</packet>

where :

  • backup_id can be obtained with vzarestore -l -f -e CTID command, example :

    ~# vzarestore -l -f -e 101
    Show existing backups...
    CTID: 101
    Title: test
    Type:  full
    BackupID: 7530d863-15fc-394a-a602-6fd564d5d067/20130922192727  <---------!!!
    Description:
    Parent environment: host.plesk.ru
    Size: 975.04 Mb
    Creation date: 2013-09-23T022727+0007
    
  • parent_eid is the EID of the hardware node, can be found in /var/opt/pva/agent/etc/eid file :

    ~# cat /var/opt/pva/agent/etc/eid
    0d4c4e88-d27c-2541-be2f-4060f288a992
    
  • target is a new EID that will be used for the container, can be generated with uuidgen command :

    ~# uuidgen
    9aac7412-dc88-4d02-8bb9-9874f0167ee4
    

Search Words

Operation failed: Can't parse vzagent message

backup

restore

vzarestore

different ctid

xml api

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f 319940068c5fa20655215d590b7be29b 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF