Previous page

Next page

Locate page in Contents

Print this page

prestore

The prestore utility is also run on the Backup Server. It uses the Container backups stored on the Backup Server to restore them to their original servers (or to any other location if the –d option is specified). The syntax of the command is the following:

prestore [ restore_options ] server1 ... [ CT_options ]

You may specify any number of servers (their names or IP addresses) whose Containers were at one time backed up and now need to be restored.

The restore options are the following:

-c CONFIG

Use an alternative backup configuration file.

-d NODE

The Destination Server to restore the Containers to. If no Destination Server is specified, the Containers are restored to the server from which they were originally backed up.

-t TAG

Specify the tag of any intermediary incremental backup to be restored.

-r TAG

Remove the backup tagged by the TAG value. This option is valid only if a single Container is specified and if the TAG value specifies the last incremental backup.

--rm-prev TAG

Remove the backup tagged by the TAG value together with all the previous backups. This option is valid only if a single Container is specified and if the TAG value specifies the last incremental backup.

-l

Do not restore any Containers. Show the information on the Containers available to be restored.

-f

Show the full information on the backed up Containers (only if the -l option is specified).

--chain

Show a tag chain (only if the –l option is specified).

--desc config

Display the configuration file inside the archive with the specified tag (only if the -l and -t options are specified).

--single-tar

Indicates that a single tar is coming ( stdin ).

--skip-check-vzcache

Do not restore the backups of the Container cached files stored in the /vz/backup/ CT_ID /vzcache directory on the Backup Server. For example, you should use this option while restoring a Container with cached files to a Destination Server other than the Backup Server.

--vzcache

Restore the vzcache template area keeping the Container cached files and located in the /vz/template/vzcaches directory on the server.

The Container options define a list of Containers to be restored:

-e CT1 ...

The Containers to be restored on the server. Any Container can be specified using both its IDs (e.g. 101 or 102 ) and its names (e.g. comp1 or comp2 ).

-x CT1 ...

The Containers that need not be restored (Containers to exclude). Any Container can be specified using both its IDs (e.g. 101 or 102 ) and its names (e.g. comp1 or comp2 ).

It is sufficient to specify only one Container option: either –e , or –x ; or to do without any Container options if all the Containers from the specified servers are to be restored.