Article ID: 5431, created on Jul 6, 2008, last review on Aug 12, 2014

  • Applies to:
  • Virtuozzo containers Tools

Symptoms

This Knowledgebase article is meant to provide a description of a new tool available since PIMU400003. This tool allows easy backups of Virtuozzo Tools 4.0 configuration (VZAgent & PIM) and quick restores in case of a failure.

The tool includes a number of helper scripts for users that enable them to create Virtuozzo Tools configuration backups and to restore them, if necessary.

Resolution

Note: Before starting the backup procedure, make sure that Service Container #1 is stopped.

Windows:


The scripts are located in the C:\Program Files\SWsoft\Virtuozzo\VZAgent\bin folder on an x86 system, and in the C:\Program Files (x86)\SWsoft\Virtuozzo\VZAgent\bin folder on an x64 system.
 
To back up the PIM installation, the following command is used:

cscript pimBackupData.vbs <backup_folder>

 
To restore the PIM installation, the following command is used:

cscript pimRestoreData.vbs [--force] <backup_folder>

 
A backup is created in the folder you specify as the <backup_folder> after pimBackupData.vbs. To restore the created backup, it is necessary to specify the path to this folder after pimRestoreData.vbs.
 
 Examples:

 - To back up the current PIM configuration to the C:\temp folder:
 
cscript pimBackupData.vbs C:\temp\

 
 - To restore the PIM configuration previously backed up to the C:\temp folder:
 
cscript pimRestoreData.vbs C:\temp


Note: The pathname to the backup folder should not contain any spaces.

Linux:

To back up the PIM installation, the following command is used:

perl /opt/vzagent/bin/pimBackupData <backup_directory>

 
To restore the PIM installation, the following command is used:

perl /opt/vzagent/bin/pimRestoreData [--force] <backup_directory>

 
The backup is created in the <current_date> subfolder of the <backup_directory> directory (the <current_date> subfolder is automatically created during the backup's creation).

To restore the created backup, you need to specify the full path to the <backup_directory>/<current_date> directory after pimRestoreData.

Examples:

- To back up the PIM configuration into the /tmp directory (during the backup's creation, the /tmp/2008-06-27T14-40-00 folder is automatically created):

perl /opt/vzagent/bin/pimBackupData /tmp/

 
 - Assuming that the /tmp/2008-06-27T14-40-00 folder was created when running the previous command and that this folder is used to store the created backup, you can restore the PIM configuration as follows:
 
perl /opt/vzagent/bin/pimRestoreData /tmp/2008-06-27T144000/


keywords: backup restore PIM

d02f9caf3e11b191a38179103495106f dec9992cb67244932723f716e20b57d9 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF