Replies: 1 comment
-
two possible solutions here:
solution 2 requires a bit more work, solution 1 might make sense, too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to automate the bulk back up of a large number of VMs. Some of them legitimately do not have disks to back up, but it is still desirable that the xml metadata be backed up. I use the exit code of virtndbbackup to determine whether it has succeeded. It exits with failure in cases where a VM has no disks to back up.
I understand that this is reasonable default behavior since it would usually not be intentional to back up only the xml. However, in my case the backup operation is automatically backing up every persistent VM across many hypervisors, and some of the VMs are expected to be of this form. It will be somewhat painful to get humans to consistently flag these VMs where they do not expect a disk backup.
While I recognize I could write code to either attempt to detect whether disks that are subject to backup exist before invoking virtnbdbackup, or attempt to screen scrape the output for this particular error message and the absence of any other errors, both of those options seem fragile in comparison to letting virtnbdbackup's existing logic make the determination.
How would you feel about something like
--allow-no-suitable-disks
? I assume there is no existing way to whitelist specific errors?Beta Was this translation helpful? Give feedback.
All reactions