VPS backups can be created using the vzbackup utility, it should be run on the backup node. You can restore any backup using the vzrestore utility.
To configure vzbackup, you should do the following actions:
Check the global vzbackup configuration file /etc/vzbackup.conf file on the backup node for backup parameters (pay attention to the $BACKUP_DIR parameter).
If you are going to make backups using a 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 about backup
BACKUP_NOTIFY_EMAIL="root@myserver.com"
Be sure to create the directory:
mkdir /vz/backups
And add the following command to the crontab on the backup node:
vzbackup -i -p -a
Also, you will need to make sure that the root user is able to access all hardware nodes without a password. This can be completed through propogating a DSA public key.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment