Overview¶
This chapter contains documentation on how to create and manage Virtual Machines Backups. Backups are managed through the datastore and image abstractions. In this way, all the concepts that apply to these objects also apply to backups like access control or quotas. Backup datastores can be defined using two backends (datastore drivers):
restic, based on the restic backup tool
rsync, that uses the rsync utility to transfer backup files.
How Should I Read This Chapter¶
Before reading this chapter, you should have already installed your Frontend, the KVM Hosts and have an OpenNebula cloud up and running with at least one virtualization node.
This Chapter is structured as follows:
First, you will learn how to setup a datastore to save your VM backups, for the restic backend and for the rsync datastore.
And then, you will find out how to perform and schedule VM backups, as well as to restore them.
Finally, if you need to backup a large number of VMs you can manage them effectively through Backup Jobs.
Hypervisor & Storage Compatibility¶
Performing a VM backup may require some support from the hypervisor or the disk image formats. The following table summarizes the backup modes supported for each hypervisor and storage system.
Hypervisor |
Storage |
Full |
Incremental |
||
---|---|---|---|---|---|
Live |
Power off |
Live |
Power off |
||
KVM |
File* (qcow2) |
Yes |
Yes |
Yes |
Yes |
File* (raw) |
Yes |
Yes |
No |
No |
|
Ceph |
Yes`†` |
Yes`†` |
Yes`†` |
Yes`†` |
|
LVM |
Not supported |
||||
LXC |
File (any format) |
No |
Yes |
No |
No |
Ceph |
No |
Yes |
No |
No |
|
LVM |
Not supported |
||||
vCenter |
vCenter** |
Not supported |
* Any datastore based on files with the given format, i.e. NFS/SAN or SSH.
** The legacy vCenter driver is included in the distribution, but no longer receives updates or bug fixes.
† Ceph full/incremental backups are currently stored in a different way, see backup types for more details.