Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

scotthesterberg/oVirtBackup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oVirtBackup

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

Requirements

It is necessary to install the oVirt Python-sdk.

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"

Workflow

  • Create a snapshot
  • Clone the snapshot into a new VM
  • Delete the snapshot
  • Export the VM to the NFS share
  • Delete the VM

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

  • When the ovirtsdk supports exporting a snapshot directly to a domain, the step of a VM creation can be removed to save some disk space during backup

Useful links:

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%