Search

Language:  
Search for:

Available article translations:

How to automate backup operations in PVC

APPLIES TO:
  • Parallels Virtuozzo Containers

Resolution

The mentioned tools - vzbackup, vzrestore - are considered as legacy. These utilities use tar for backup creation, and files can be put into a backup while being changed.

  • On the nodes with Parallels Cloud Server, it is recommended to use prlctl backup, prlctl restore instead.
  • For containers hosted on Parallels Server Bare Metal and Parallels Virtuozzo Containers for Linux, use Parallels Virtual Automation which provides vzabackup and vzarestore.

Parallels Virtuozzo Containers (PVC) backups can be created using the vzbackup utility, run on the Backup Node. You can restore any backup using the vzrestore utility.

To configure vzbackup, do the following:

  1. Check the global vzbackup configuration file /etc/vzbackup.conf 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 on backup
    
    BACKUP_NOTIFY_EMAIL="root@email.tld"
    
  2. Create this directory:

    ~# mkdir /vz/backups
    
  3. Add the following command to the crontab on the Backup Node:

    ~# vzbackup -i -p -a
    
  4. Make sure the root user of the Backup Node is able to access all Hardware Nodes without a password (propagate SSH DSA public keys).



909d99074e442b52ce54cc7b31cf065d 2897d76d56d2010f4e3a28f864d69223

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No
 
 
 
 
 
 
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0
- Parallels Virtuozzo Containers
Automation
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification