Closed aruhier closed 7 years ago
Since 5d7c2b1, cleans all temporary files if backup fails. The clean
option should be improved to scan all broken backups (in case the hypervisor crashed during the backup, for example) to remove them and the temporary external snapshot.
If the host crashes, for the moment it would let an external snapshot for the domain being backed-up before the crash, and a broken backup.
Maybe there should be an option for virt-backup to clean all broken backups, and trigger a pivot to remove the external snapshot. A service starting virt-backup at boot with this "cleaning" option could be a good idea.
A temporary file could be created when a backup starts, and removed at the end, to easily know if one failed or not.