Backup your kvm guests managed by libvirt
Fixes #51 where the clean command could fail if the json definition had an unexpected field.
Added a -c/--config
option to specify a custom config path.
Cleanups and fixes in the CLI helpers.
virt-backup list testgroup
will list backups only for testgroup
.arrow
.Quiesce can now be used for external snapshots. If enabled, libvirt will try to use the guest agent to freeze and unfreeze domain's mounted file systems. For more information, look at the quiesce option in libvirt: https://libvirt.org/manpages/virsh.html#snapshot-create
It can be enabled for an entire group or per domain. Look at the quiesce
option in the example config. If the domain to backup doesn't support this option, an error message will be shown, but the backup fallbacks to a non-quiesce snapshot.
threads
parameter, allowing to use multithreading for the compression of a disk. Default to 0
, meaning single threads. -1
can be set to use all the cores detected on the system, otherwise set an integer for the number of wanted threads.This is a pretty big release in term of refactoring/cleanup, and will allow to add more features in the future, and make some testing way easier!
As packagers were introduced (see the changelog for details), modifications should be done in the configuration file. Any current configuration file should continue to work, but a warning will be print to advice the changes to be applied.
Change any usage of compress
and compress_lvl
to packager
and packager_opts
: https://github.com/aruhier/virt-backup/blob/9fac0813433cacb560a52224c695ef85e8548494/example/config.yml#L51
Features:
zstandard
to be installed in order to use it.Bug fixing:
0
, meaning that the backups would be kept indefinitely. This behavior was wanted, but is actually not intuitive. Now default to 5
kept backups for every period, if not set.Refactoring/Cleanup: