Search for:

Available article translations:

[How To] How to Automate Backups in PVC

Article ID: 1255, created on Oct 6, 2008, last review on May 11, 2014

  • Virtuozzo containers for Windows


The virtual environments (VEs) within Parallels Virtuozzo Containers (PVC) can be integrated with the Windows Scheduler to have automated backups performed.

By creating a simple batch file and integrating it with our Command Line Interface (CLI), the process can run at regular intervals on the server. Both full and incremental backups can be performed through the Windows Scheduler. The command used to back up a VE is called "vzbackup." Examples of how to perform each type of backup are listed below.

While running this command, vzbackup does the following:
  • It connects via SSH to the Source Node where the identified VE you wish to back up resides;
  • It compresses the private area of the selected VE and its registry settings to a .zip formatted file;
  • It connects via SSH to the Backup Node;
  • It transfers the compressed file to a special backup folder on the Backup Node.

For example, to back up a single VE (101) hosted on a Hardware Node, the command below would back it up on that server.

vzbackup 101

To have the scripted backup create a backup on the Host Node ( and send it to the Backup Node (, the following command would be used:

vzbackup 101 -A –U Administrator –P passwd200


-U is the Administrator login to the Backup Node. This option can be omitted – in this case, the vzagent0 password should be used with the –P option.
-P is the password of the Administrator ID to the specified server.
-A is the IP address of the Backup Node to receive the backup.

Note: If you have the Service VE in the NAT mode, you have to use the Node IP with the –A option. If you have the Service VE without the NAT mode, you will use the Service VE IP with the –A option.

In the example below, this backup script allows all the VEs to be backed up at once:

Full backup:

@echo off

for /F "skip=3 usebackq tokens=*" %%i in (`cmd /c "vzlist -ao veid"`) do (cmd /c "vzbackup "%%i && echo VE ID %%i has been backed up!)

Incremental backup for PVC 3.5.1:

@echo off

for /F "skip=3 usebackq tokens=*" %%i in (`cmd /c "vzlist -ao veid"`) do (cmd /c "vzbackup -I "%%i && echo VE ID %%i has been backed up!)

Incremental backup for PVC 4.0:

@echo off

for /F "skip=3 usebackq tokens=*" %%i in (`cmd /c "vzlist -ao veid"`) do (cmd /c "vzbackup" %%i -I && echo VE ID %%i has been backed up!)

965b49118115a610e93635d21c5694a8 d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

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