16.1. Virtuozzo Automator Command-Line Utilities¶
This chapter is an additional reference on the Hardware Node command-line utilities. The chapter documents the utilities that are available after the VA Agent is installed on the Hardware Node. For every utility, all available command-line options are described.
16.1.1. vzagroup¶
The vzagroup
utility is used to logically organize the physical servers and containers. There are two independent ways to design the structure organization. They are called Infrastructure and Logical View and presented as top-level elements in the Virtuozzo Automator left menu. You can use either one of them or, better, both at once, as their functions are different. For more information on building up a logical structure and combining containers into groups, refer to the Organizing Logical Structure section.
The utility is also used as a part of an upgrading procedure for importing data between server.
The utility can be run either on a Master server or a Slave server with a different number of available commands.
Running on VA Slave Server
The utility has the following syntax:
# vzagroup <command> <options> <node>
The restoration options are the following:
Command |
Description |
---|---|
|
Adds the Slave server to the VA group. |
|
Lists the physical servers within the VA infrastructure. The command shows the statuses
|
|
Removes the Slave server, you are logged into, from the VA group. |
Running on VA Master Server
The utility has the following syntax:
# vzagroup <command> <options> <node>
Commands:
Command |
Description |
---|---|
|
Includes a container into an Infrastructure ( |
|
Creates a new folder/subfolder in the Infrastructure or Logical View context,
|
|
Registers a new Slave physical server in the VA infrastructure. Specify the physical server’s
IP address. In case the server is registered in another infrastructure, you can force the
server re-registration with the |
|
Removes container from the Infrastructure or Logical View context. Specify the folder/subfolder name where the container belongs, the physical server IP address that host the container and the container ID. |
|
Removes a folder/sub-folder from the Infrastructure or Logical View context. |
|
Lists the physical servers within the VA infrastructure. The command shows the statuses
( |
|
Lists the elements (folders, containers, etc.) that are grouped under the Infrastructure or Logical View context. To list the elements of a particular folder/sub-folder, specify its name additionally. |
|
Changes the configuration settings for a group of containers, such as, managing permissions, scheduling backups, applying system updates, etc. For example. the log level can be changes with the following command:
|
|
Unregisters a Slave physical server from the VA infrastructure. Use the |
|
Use the option with the |
Upgrade commands:
Command |
Description |
---|---|
|
Registers the Slave server from the PIM 4.0 infrastructure in the Virtuozzo Automator Infrastructure. The Slave server’s version remains 4.0. |
|
Transfers data from the PIM 4.0 infrastructure to the Virtuozzo Automator infrastructure. |
The options which can be used with the --importSettings
command of vzagroup:
Option |
Description |
---|---|
|
Imports security settings from 4.0 server (roles, role assignments, users, groups). |
|
Imports infrastructure folders, logical view from 4.0 server. |
|
Imports alerts and events from 4.0 server. |
|
Imports task log from 4.0 server. |
|
Imports scheduled tasks from 4.0 server. |
|
Imports physical server messaging settings from 4.0 server. |
|
Imports default backup settings from 4.0 server. |
|
Imports IP ranges from 4.0 server. |
|
Imports container templates from 4.0 server. |
|
Imports virtual networks from 4.0 server. |
|
Deletes data from a 6.1 master server before importing information from 4.0 server. |
|
Assigns a 4.0 Master server a Slave server role while registering by 6.1 Master server. Note You can also register the server from Virtuozzo Automator. |
16.1.2. vzabackup¶
Note
This feature is only supported for Virtuozzo 6 servers.
The vzabackup
utility is used to back up legacy containers or certain container files/folders and can be run on any Virtuozzo 6 host (including the Source and Backup Nodes) with the vzabackup
package installed. It has the following syntax:
vzabackup [BACKUP\_OPTIONS] NODE1 ... [CT\_OPTIONS]
vzabackup [STORAGE\_OPTIONS]
Note
For the vzabackup
functionality to work, forward and reverse DNS lookups must be correctly configured for both the Source and Backup Nodes.
General backup options:
Option |
Description |
---|---|
|
Forces performing a full backup. |
|
Makes an incremental backup or, if no full backups are available, a full backup. If this and
|
|
Makes a differential backup or, if no full backups are available, a full backup. If this and
|
|
The description of the backup archive. The backup description should always be quoted (e.g. “backup for Container 101”). |
|
Creates a new backup and then removes the oldest backup of the specified container. |
|
Creates a backup and then removes the backup with the specified ID. You can learn what ID is
assigned to this or that container backup by running the |
|
Creates the container backup without any compression. This will speed up the backing up time; however, it may significantly increase the size of the resulting backup archive. |
|
Compresses the resulting backups with the normal level of compression. This is the default level of compression used to back up all server/containers. The optimal data compression level depends on the type of files to be stored in the backup
archive. For example, it is advisable to use the ‘normal’ and ‘none’ compression types if most
of the files to be backed up are already compressed (e.g. the files with the |
|
Compresses the resulting backups with the high level of compression. The size of the resulting
backup file is smaller than that of the backup file compressed with the |
|
Compresses the resulting backups with the maximum level of compression. In this case the backup file size is the smallest; however, it may take much time to create such backups. |
|
If several servers (Hardware Nodes) are specified, this option tells |
|
Forces the process of backing up the server (Hardware Nodes)/containers. You are recommended to use this option when simultaneously backing up more than one Node/container. |
|
The IP address or hostname and the credentials of the Backup Node where the created backup will
be stored. Should be specified in the following format:
When using this option, keep in mind the following:
|
|
The IP address and the root credentials of the Source Node, i.e. of the Node hosting the
containers to be backed up. Should be specified in the following form:
When using this option, keep in mind the following:
|
|
Disables logging to the screen during the |
Per-Container parameters:
Option |
Description |
---|---|
|
An incremental backup parameter. After this number of incremental backups, a full backup will be performed. |
|
An incremental backup parameter. After this number of days, a full backup will be performed. |
Container backup options:
Option |
Description |
---|---|
|
The containers to back up on the Source Node. If this and the |
|
The containers that need not to be backed up, i.e. the containers you wish to exclude from the
backup process. If this and the |
|
The path to the files and directories inside the container to be included in the backup. |
|
The path to the files and directories inside the container to be excluded from the backup. |
Backup storage options:
Option |
Description |
---|---|
|
Displays the path tothe backup storage directory on the local Node. The default directory is
|
|
Sets a new directory on the local Node where the created backups are to be stored (if the
local Node is used as the Backup Node). Uses |
|
Sets backup storage login credentials. Required for Samba storage. Uses |
|
Path to a custom backup storage location. |
|
Username for a custom backup storage on a Samba share. |
|
Password for a custom backup storage on a Samba share. |
16.1.3. vzarestore¶
The vzarestore
utility is used to restore legacy containers or certain files/folders from container backup archives, list backups existing on the Backup Node, remove backups, etc.
The utility has the following syntax:
vzarestore [CTID[:NEW_CTID] | -e [<CTID[:NEW_CTID]...>] [OPTIONS] [BACKUP_NODE]
vzarestore -r,--remove <BACKUP_ID...>
vzarestore -l,--list [LIST_OPTIONS] [BACKUP_NODE]
vzarestore --browse BACKUP_ID [BROWSE_OPTIONS] [BACKUP_NODE]
vzarestore --print-ct-config BACKUP_ID [BACKUP_NODE]
vzarestore --help
Restoration options:
Option |
Description |
---|---|
|
Comma-separated list of containers to restore. Containers can be specified using both their IDs
(e.g., |
|
Comma-separated list of containers to skip. Containers can be specified using both their IDs
(e.g., |
|
The ID assigned to the container backup. This ID can be used to restore this container or its certain files from the backup with the specified ID. If not specified, the last container backup is used. This option is incompatible with the Note
|
|
Do not stop on errors during the |
|
Do not restore the container configuration file. This option can be used only when restoring a single container. Note The container configuration file is not changed when restoring separate container files. |
|
The full path to the file/directory inside the container to be restored. This option is
incompatible with the |
|
Do not stop on errors even if some of the files to be restored are in the ‘locked’ state. |
|
Handles the values after the |
|
The IP address and the credentials of the Backup Node where the container backups are stored.
Can be specified in the following form: |
Miscellaneous options:
Option |
Description |
---|---|
|
Removes the container backup with the specified backup ID. You can specify several backup IDs and separate them by spaces. |
|
Do not restore any containers. Displays the information on the existing backups located either on the Backup Node or on the local Node if the former is not specified. |
|
Displays the contents of the container backup with the specified backup ID. |
|
Displays the configuration file contents of the container with the specified backup ID. |
Listing options:
Option |
Description |
---|---|
|
Displays the full information on the specified container backup. Used only with |
|
Displays the latest containers backups. Used only with |
|
Displays the information on the backups for the specified containers only. |
|
Handles the values after the |
Browsing options:
Option |
Description |
---|---|
|
Path to a directory inside a container backup archive contents of which you want to see. Used
with |
|
Path to a custom backup storage location. |