Product:
Search Type:

How do I automate backup operations in Virtuozzo?

Article ID: 717 
Last Review: Jan,10 2006
APPLIES TO:
  • Virtuozzo for Linux

RESOLUTION


VE backups can be created using vzbackup utility. It should be run on the backup node. You can restore any backup using vzrestore utility.

To configure vzbackup  you should do the following:

  1. Check global vzbackup configuration file /etc/vzbackup.conf file on the backup node for backup parameters (pay attention to $BACKUP_DIR parameter).

    If you are going to make backups using cronjob, set the following parameters:

    # Backup directory - where the backups will be stored, e.g

    BACKUP_DIR="/vz/backups"

    # backup type. Supported types are "full", "initial incremental" and
    # "incremental". Default is incremental. If it is impossible to do
    # "incremental" then "initial incremental" will be done.

    BACKUP_TYPE="i"

    # Backup cron mode

    CRON_BACKUP="yes"

    # List of nodes to backup.

    BACKUP_NODES=""

    # e-mails to send notifications on backup

    BACKUP_NOTIFY_EMAIL="root@myserver.com"



  2. Create directory

    # mkdir /vz/backups


  3. Add the following command to the crontab on the backup node:

    # vzbackup -i -p -a



  4. Make sure  root user of the backup node is able to access all hardware nodes without a password (propagate DSA public keys).

Keywords: backup,vzbackup,restore,vzrestore

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields