Skip to content

feat: allow not backed up VMs to be ignored for backup check - #81

Merged
nbuchwitz merged 2 commits into
nbuchwitz:mainfrom
MrPikPik:ignore-nbu
Jan 26, 2026
Merged

nbuchwitz merged 2 commits into
nbuchwitz:mainfrom
MrPikPik:ignore-nbu

Conversation

@MrPikPik

@MrPikPik MrPikPik commented Jan 26, 2026 •

Copy link
Copy Markdown
Contributor

Add new flag --ignore-no-backup to allow users to ignore not backed up VMs in the backup check. The backup check may return a warning state if not backed up VMs are found, however this may be intentional (backup not needed, backup with different mechanism, ...).

Use case, why this has been created: At our company we have several temporary or permanent test VMs, which we don't want backed up. The backup-check returns a warning state for those, as they are intentionally unconfigured. Since some VMs are temporary, the VM-IDs are not fixed and reconfiguring the check commands every time the state or amount of test VMs changes would be burdensome.
Hence we propose this change of simply letting any unconfigured VMs being ignored.

@nbuchwitz

nbuchwitz commented Jan 26, 2026 •

Copy link
Copy Markdown
Owner

After some thinking about alternatives (like ignoring vms by their pool or vmid), this sounds like a reasonable feature request. I'm only thinking about a better naming for the ignore switch than --ignore-nbu. Maybe --ignore-no-backup or --ignore-missing-backup ?

@nbuchwitz
nbuchwitz self-requested a review January 26, 2026 15:24
Add new flag '--ignore-no-backup' to allow users to ignore not backed up VMs in the backup check. The backup check may return a warning state if not backed up VMs are found, however this may be intentional (backup not needed, backup with different mechanism, ...).
@MrPikPik

Copy link
Copy Markdown
Contributor Author

I have amended the edit to reflect the requested change for the switch name 👍

@nbuchwitz

Copy link
Copy Markdown
Owner

Thanks! Can you please also update the README with the changes?

Adds the `--ignore-no-backup` switch to the Usage section of the Readme.
Adds a small usage example to the Check VZDump Backups section of the Readme

@nbuchwitz nbuchwitz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nbuchwitz
nbuchwitz merged commit 2e10cf2 into nbuchwitz:main Jan 26, 2026
2 checks passed
@MrPikPik
MrPikPik deleted the ignore-nbu branch January 26, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants