wefixit-AT / oVirtBackup

This is a tool, written in Python, to make online fullbackup's of a VM which runs in an oVirt environment.
MIT License
105 stars 54 forks source link

oVirtBackup

This is a tool, written in Python, to make online fullbackup's of a VM which runs in an oVirt environment.

WARNING: This release has to be tested with oVirt 4.4. For oVirt 4.3 please take a look the the branches.

Requirements

It is necessary to install the oVirt Python-sdk. In addition when running Pyhon < 2.7 you need you install argparse.

http://www.ovirt.org/Python-sdk

Usage

Take a look at the usage text.

backup.py -h

Configuration

Take a look at the example "config_example.cfg"

Please avoid Cirillic symbols in the configuration otherwise you will get an exception see #59

Workflow

Useful tips

crontab

00  20  *   *   *   /home/backup/oVirtBackup.git/backup.py -c /home/backup/oVirtBackup.git/config_webserver.cfg -d >> /var/log/oVirtBackup/webserver.log 

Logrotate: /etc/logrotate.d/oVirtBackup

/var/log/oVirtBackup/* {
    daily
    rotate 14
    compress
    delaycompress
    missingok
    notifempty
}

Security

Set permissions to config.cfg only for the needed user (chmod 600 config.cfg).

TODO's

Useful links:

Running tests

Install tox.

$ tox