Previous page

Next page

Locate page in Contents

Print this page

recover_template

Linux Summary:

The recover_template call is used to restore the original state of a Virtuozzo Container system and application files in case the Container administrator has inadvertently modified, replaced, or deleted any of the files (more precisely the VZFS symlinks in the Container private area) that are part of an application or operating system template. The symlinks may be restored by rewriting the original symlinks to the Container private area (recover) or by creating an entirely new private area to replace the existing one (reinstall).

Request specification:

Name

Min/Max

Type

Description

recover_template

 

 

 

{

 

 

 

eid

1..1

eid_type

Server ID of the Container.

password

0..1

base64Binary

Use this element to specify the new password for the user root.

clean

0..1

none

Include this element to reinstall the Container private area. The procedure consists of the following steps:

1. A new private area is created.

2. All installed applications are reinstalled in the new private area.

3. If the password option (above) is NOT included, all existing user profiles will be copied to the new private area. If the option is included, the users will be discarded.

4. If the skipbackup option (below) is NOT included, the old Container private area will be backed up to the /old directory on the host machine.

Note: If you use non-default configurations on some of the services, the services will be available in the /old directory only. Thus, some of the services may not work as intended.

skipbackup

0..1

none

By default, the old private area of the Container is backed up to the /old directory on the Hardware Node. Include this element if you don't want to create a backup.

script

0..[]

string

During the reinstallation procedure, a series of scripts is executed in order to bring the application templates inside a Container to their original working states. These scripts are supplied by the application vendors and are copied to the Hardware Node when you initially install an application template. By default all available scripts will be executed automatically. You may use this element to manually specify the names of the scripts to execute. To retrieve the names of the available scripts use the get_script call.

}

 

 

 

Returns:

OK/Error

Example:

The following example demonstrates how to recover the Container private are using the default options.

Input

<packet version="4.0.0" id="2">

<target>vzaenvm</target>

<data>

<vzaenvm>

<recover_template>

<eid>6576a097-9823-ea48-94a1-4c09e824292c</eid>

</recover_template>

</vzaenvm>

</data>

</packet>

The following example demonstrates how to reinstall the Container private area.

Input

<packet version="4.0.0" id="2">

<target>vzaenvm</target>

<data>

<vzaenvm>

<recover_template>

<eid>6576a097-9823-ea48-94a1-4c09e824292c</eid>

<password>bmV3cGFzcw==</password>

<clean/>

</recover_template>

</vzaenvm>

</data>

</packet>

Please send us your feedback on this help page