3.2.10. prlctl reinstall

Recreates a container from scratch according to its configuration file. Copies old private area content to the /vz/root/<CT_name>/old directory.

Syntax. 

prlctl reinstall <CT_name> [--skipbackup] [--resetpwdb] [--scripts <script> [...]]
prlctl reinstall <CT_name> [--listscripts] [--desc]

Table 3.16. Options

NameDescription

<CT_name>

Container name.

--resetpwdb

Removes container’s user database and creates a clean database as for any new installation.

--skipbackup

Does not save the old private area contents to the /old directory.

--scripts <script>[…]

Specifies the scripts to be executed during reinstallation. These scripts are used to customize application templates in the new container and bring them to the same state as in the old container. By default, all available scripts are executed.

--listscripts

Lists the scripts to be executed during container reinstallation.

--desc

Displays the description of the scripts to be executed during container reinstallation. Used together with the --listscripts option.

Note

Note: Currently, the reinstall command may not be supported by the prlctl utility. Use vzctl instead.