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 |
|
|
|
|
|
|
|
|
|
|
Server ID of the Container. |
|
|
|
|
Use this element to specify the new password for the user |
|
|
|
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 4. If the Note: If you use non-default configurations on some of the services, the services will be available in the |
|
|
|
By default, the old private area of the Container is backed up to the |
|
|
|
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 |
|
|
|
|
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>