Filippo Zanardo's Blog

to blog or not to blog

XenBackup NG

with 3 comments

A friend modify my script and make some change i post his change:

# XenBackup-ng by Riccardo Bicelli
# built on “XEN Server backup by Filippo Zanardo –”

# Usage: “perl “, where job name is the name of the job file located in subfolder “jobs”, without “.conf” suffix.

# Difference between this and Xenbackup
# 1. Subroutines
# 2. Separation of configuration files and hierarchy:
# – conf/strings.conf -> Where strings of log and mail notification can be localized
# – conf/xenbackup.conf -> global configuration file, where you can specify also default parameters if you are not using jobs
# – jobs/job.conf -> Job File, loaded after xenbackup.conf
# 3. Now backup is possible with VM Selection
# 4. Quiesce snapshot for Windows VM (Only if guest has Xenserver VSS provider installed)
# 5. Mail Notification now comes with a head Section with a checklist of backed up VM and verbose log attached, if wanted
# 6. More controls on commands executed (e.g. Exit codes checked after some command execution)
# 7. Keeps care of running state of the VM (e.g if a VM in in state halted it is not started after backup job)
# 8. Versioning (deletion of files) executed only if backup process went fine

# To Implement:
# 1. Host Backup
# 2. Metadata backup with Metadata SR Copy
# 3. Metadata option to BM backup
# 4. Pool data backup

download the file here

you can follow him at Riccardo Bicelli Blog.


Written by pipposan

September 12, 2011 at 14:23

Posted in Uncategorized

3 Responses

Subscribe to comments with RSS.

  1. Hi,

    at first: thanks for providing a backup script for xenserver!

    Today, I dowloaded xenbackup-ng. I got it working, quickly, but I had to fix something:
    I discovered that there is a closing curly bracket missing at the end of the the perl script. I added one and the script did its job.

    Thanks again,



    September 19, 2011 at 10:49

  2. Hi,

    Thanks for this useful script.

    on file xenbackup.conf, line 58. shoould be “quiesce” instead of “usequiesce”.

    Cheers !


    November 7, 2011 at 12:11

  3. Are there any plans to modify the script for multi-threaded? It would be nice if multiple vm backups could run at the same time.


    December 12, 2011 at 04:10

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: