Download Parallels Virtuozzo Containers for Linux
Transcript
Operations on Containers 69 Using vzabackup/vzarestore Utilities A regular backing up of the existing Containers is essential for any Hardware Node reliability. Virtuozzo Containers 4.0 is shipped with the vzabackup and vzarestore utilities allowing you to back up and restore your Hardware Nodes and their Containers. These utilities can be run on virtually every Node in your network: on the Source Node where the Container to be backed up is residing; on the Backup Node - a special Node intended for storing Container backups (if you have any), or on any other Parallels Virtuozzo-based physical server in your network. The only requirements all the Nodes should meet to successfully run vzabackup and vzarestore on them is to have a server with the vzabackup package installed and to provide the network connectivity for this server to be able to establish connections to the Source and Backup Nodes, if necessary. The vzabackup package needs the Parallels Agent software to be installed on the Node for its functioning; so, you may need to install this software first. The created Hardware Node and Container backups are stored on the Backup Node which can also be presented by any server in your network with the running Parallels Agent software. Note: The vzabackup and vzarestore utilities can be used to back up and restore Hardware Nodes running Virtuozzo Containers 4.0 and their Containers. For information on how to create backups of Hardware Nodes with earlier versions of Parallels Virtuozzo Containers installed and their Containers, please turn to the Running vzabackup/vzarestore Utilities section (p. 274). vzabackup can be used to back up both the Hardware Node itself and all its Containers. Let us assume the following: You wish to create a full backup of Container 101 residing on the Source Node with the IP address of 192.168.0.15. The credentials to access the Source Node are source_root and 1234qwer. The backup will be created with the high level of compression. The Backup Node where the resulting backup archive will be stored has the IP address of 192.168.200.200 and the credentials of backup_root and 1qaz2wsx. You wish to exclude the /tmp directory inside Container 101 from the backup process. You wish to provide the following description for the resulting backup archive: The MySQL database - latest changes. To create a backup with the aforementioned parameters, you can execute the following command on any Hardware Node with vzabackup installed and having the network connectivity to the Source and Backup Nodes: # vzabackup -D "The MySQL database - latest changes." -C3 \ --storage backup_root:[email protected] \ source_root:[email protected] -e 101 \ --exclude-files /tmp ... * Sending private backup data * Backup storage: storing private backup data * Backup storage: filling resultant backup info * Removing obsolete backups * Checking parameters