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

RolandK

Renowned Member
Mar 5, 2019
923
173
88
50
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!