Hello,
For several days I have been trying to use the PBS API to perform a selective re-verify for snapshots whose verify status is expiring. However, due to processing constraints, we will not be able to run this every day as mentioned in my previous post.
As far as I understand, it is not possible to perform a selective re-verify — meaning targeting a specific snapshot of a given VM for a given day — using the proxmox-backup-client command. Since this operation can be done from the web UI, I assumed that using the API would be the only way to automate it.
Unfortunately, I have not been able to get it working. The API call does not return a failure message, which gives the impression that the task was executed, but in reality the checkmark remains yellow.
Here is the command I am using.
And the returned message.
Thank you for your help.
For several days I have been trying to use the PBS API to perform a selective re-verify for snapshots whose verify status is expiring. However, due to processing constraints, we will not be able to run this every day as mentioned in my previous post.
As far as I understand, it is not possible to perform a selective re-verify — meaning targeting a specific snapshot of a given VM for a given day — using the proxmox-backup-client command. Since this operation can be done from the web UI, I assumed that using the API would be the only way to automate it.
Unfortunately, I have not been able to get it working. The API call does not return a failure message, which gives the impression that the task was executed, but in reality the checkmark remains yellow.
Here is the command I am using.
Bash:
curl -k -X POST -H "$auth" \
-d "backup-type=vm" \
-d "backup-id=267" \
-d "backup-time=1769817643" \
-d "ns=prod" \
https://pbs:8007/api2/json/admin/datastore/ds21/verify
And the returned message.
Bash:
{"data":"UPID:pbs:0000045A:0000038A:00003D9E:69A983AF:verify_snapshot:ds21\\x3ans-prod-vm-267-697D462B:backup@pbs!backup:"}
Thank you for your help.