So perhaps qemu-img isn't the best way to do this.
I was hoping I could write a bash script or something to take a snapshot. Is that possible, or is there a better way?

I was looking at https://github.com/wefixit-AT/oVirtBackup tonight, but haven't been able to get it to work as of yet.

When I run it, it recognizes the backup storage domain, says that it has started taking a snapshot, but then immediately says the snapshot was created (at which point everything else fails):

2022-05-05 21:05:35,453: Start backup for: my-vm-name.example.com
2022-05-05 21:05:35,554: The storage domain SpinningData is in state active
2022-05-05 21:05:35,732: Snapshot creation started ...
2022-05-05 21:05:35,732: Snapshot created
2022-05-05 21:05:40,773: !!! No snapshot found !!!
2022-05-05 21:05:40,773: All backups done
2022-05-05 21:05:40,773: Backup failured for:
2022-05-05 21:05:40,773:   my-vm-name.example.com
2022-05-05 21:05:40,773: Some errors occured during the backup, please check the log file

The README says something about the python-sdk. How do I install that? I don't see that anywhere. 

[root@phys1 oVirtBackup-master]# yum info ovirt-engine-sdk-python
Updating Subscription Management repositories.
Last metadata expiration check: 1:14:19 ago on Thu 05 May 2022 07:58:16 PM EDT.
Error: No matching Packages to list
[root@phys1 oVirtBackup-master]# yum whatprovides ovirt-engine-sdk-python
Updating Subscription Management repositories.
Last metadata expiration check: 1:14:31 ago on Thu 05 May 2022 07:58:16 PM EDT.
Error: No Matches found

Is there a better way to run automated backups than this approach and/or using qemu-img?

Sent with ProtonMail secure email.

------- Original Message -------
On Wednesday, May 4th, 2022 at 1:27 PM, David White via Users <users@ovirt.org> wrote:

I've recently been working with the qemu-img commands for some work that has nothing to do with oVirt or anything inside an oVirt environment.

But learning and using these commands have given me an idea for automating backups.

I believe that the following is true, but to confirm, would the qemu-img commands be available on the oVirt hosts to take VM snapshots and disk images?

Sent with ProtonMail secure email.