Xenserver Script to Import and Export Vm from command line

By | March 24, 2010

I have created a small script, which enables you to take a backup of a Vm running on Citrix Xenserver and Export it on your local machine,
You can also restore an exported vm (IMPORT) to any remote xenserver with this script.
I am also working on the functionality to create scheduled tasks (cron jobs) out of this script so that you can create a backup schedule for your xenserver vm’s
with two options, you can either shutdown a vm and export it, or else you can take a snapshot of a vm and then export that snapshot.
As usual this Xenserver Backup application will be free, and should be avaliable shortly, if you are in need of this, let me know as i already have a beta version running,
however packing an installer is the most tedious part of the whole process 😛

This script has been tested on ubuntu 9 but should work on any linux.

To Run the script, just run
chmod +x IMPEXPVM.sh
./IMPEXPVM.sh

And then follow the instructions on the screen

Please let me know if this was of any help.

You can Download it here IMPEXPVM

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.