how to verify from cli with ignore-verified and outdated-after ?

RolandK

Renowned Member
Mar 5, 2019
998
214
88
52
hello,

i want to do a serialized gc/prune & verify from commandline via cronjob to minimize spinup/down of the backup-disk at my homeserver and i have come very close.

one problem is left:

how can i verify a datastore from cli with --ignore-verified and --outdated-after option?

unfortunately, there seems to be no such option for "proxmox-backup-manager verify" !?

furthermore it seems that i cannot immediately start a verify job from cli, too (which lets the command return after finish) !?

for now my script looks like this, but it does not skip uneccesary verify. i have no idea how to solve this.

#!/bin/bash
proxmox-backup-manager verify pve-t620_backup
pvesm prune-backups pbs_pve-t620_backup --keep-daily 14 --keep-weekly 4 --keep-monthly 6 --keep-yearly 1
proxmox-backup-manager garbage-collection start pve-t620_backup
 
you're right, but those options are generally missing for the 'manual' verify calls (e.g. the verify buttons on the gui) and are only there
for 'verify-jobs' (which you cannot start manually via cli)

would you mind opening a feature request for those at https://bugzilla.proxmox.com ?
i think it might make sense to implement those options also for the manual verify api calls, as well as a manual run of a verify job on the cli