This plugin makes backup of Xen Server. It can be used to save:
- VM: using the xe vm-export or snapshot-export-to-template command.
- HOST: using the xe host-backup command
- POOL DATABASE: using the xe pool-dump-database command
To restore select the needed file, found in /@XENSERVER in the catalog.
The plugins has been developed and tested with Xen Server 7.1
You need the packages bareos-filedaemon-python-plugin installed on your client.
- Make sure you have met the prerequisites.
- Install the files BareosFdTaskClass.py, xenserver/BareosFdXenServerClass.py and xenserver/bareos-fd-xenserver.py in your Bareos plugin directory (usually /usr/lib/bareos/plugins)
Activate your plugin directory in the fd resource configuration on the client
FileDaemon {
Name = client-fd
...
Plugin Directory = /usr/lib/bareos/plugins
}
Include the Plugin in the fileset definition on the director
FileSet {
Name = "client-data"
Include {
Options {
compression = LZO
signature = MD5
}
File = /etc
#...
Plugin = "python:module_path=/usr/lib/bareos/plugins:module_name=bareos-fd-xenserver"
}
}
}
You can append options to the plugin call as key=value pairs, separated by ':'. Please read more about the BareOS Python Plugin Interface here: http://doc.bareos.org/master/html/bareos-manual-main-reference.html#Python-fdPlugin
Example plugin options:
Plugin = "python:module_path=/usr/lib/bareos/plugins:module_name=bareos-fd-xenserver:host_backup=yes"
Virtual folder used in catalog. Default: @XENSERVER
Set to no to disable host backup. Default: yes
Set to no to disable pool dump database. If host is not the pool master, dump will be skipped. Default: yes
Set to yes to enable virtual machines backup. Default: no
Semicolon separated list of virtual machines names to back up. if unset all virtual machine are dumped. Default: unset
Comma separated list of database names exclude from backup. Default: unset
Set to no to include virtual machines in any power-state. Default: yes
Set to yes to create a snapshot and back up it instead of virtual machine itself. This allows back up running virtual machine. Default: yes