Skip to content

Ernest0x/ganeti-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ganeti-backup

A utility to export ganeti instances in order to take backups

The utility is meant to be installed on a utility instance on which cluster instances are to be exported.

ansible (http://ansible.cc) is used for both the installation of ganeti-backup on the utility instance as well as for running ganeti-backup from inside that instance to do the exports. That means that ansible must be installed on both the utility instance and on the host used to install ganeti-backup.

To install run:

# ansible-playbook -e target=utility-instance.example.org setup.yml

From inside the utility instance, exports can be done with:

# ansible-playbook -e target=cluster-nodes /opt/ganeti-backup/deploy/export.yml

To clean exports after taking backups of them, run (from inside the utility instance):

# ansible-playbook -e target=cluster-nodes /opt/ganeti-backup/deploy/clean.yml

'cluster-nodes' should be the name of a group that must be defined to group all nodes of the cluster. This group must be defined in the ansible inventory accessed by ansible when called from inside the utility instance.

A backup utility could be configured to:

  1. run the export script at pre-backup stage
  2. add the path for the exported instances in the list of the paths to include in the backup archive, and
  3. run the clean script at post-backup stage

The 'inventory_vars.yml.example' file inside 'deploy' directory holds documentation of all the configuration options required for the installation and running of ganeti-backup. These configuration options should be placed in the ansible inventory used for the deployment of utility instances.

Known issues and limitations:

  • Importing exported instances back to ganeti is not (yet) implemented.

About

A utility to export ganeti instances in order to take backups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published