Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 976 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 976 Bytes

XenServer CBT sample code

This repository contains a collection of scripts that use the XenServer changed block tracking API.

These scripts are an example of how to use the changed block tracking feature from end-to-end including:

  • enabling changed block tracking
  • copying changed blocks
  • destroying unnecessary snapshot data.
  • coalescing incremental backup onto base VDI
  • importing backup VDI

The examples are written in Python.

License

This code is licensed under the BSD 3-Clause license. Please see the LICENSE file for more information.

How to use these scripts

The required Python packages used can be found in the requirements.txt file. Note that depending on the distro you are using some of these packages may already be installed.

For the XenAPI package use the one provided in the SDK.

You can then run the end-to-end scripts using:

    ./execute-cbt.sh <host address> <username> <password> <VDI uuid>