Bash script for backing up KVM virtual machines
- Mounts a specified disk to a specified folder.
- If the number of already present backups is equal to $MAXBACKUPS, removes the oldest one
- Checks that it has enough disk space (TODO needs improvement)
- Creates snapshots of the disk to be backed up.
- Performs backup
- Commits disk changes since the snapshots were created (blockcommit) and removes diff files
- Backs up the virtual machine XML configuration