proxmox-backup-client Permission Check Failed

Nov 10, 2025
1
0
1
Hi All!

I would like to schedule backups for a filesystem on my PVE host to the PBS server with proxmox-backup-client.

Running proxmox-backup-client backup "${LABEL}.pxar:${SOURCE_PATH}" --repository "${PBS_REPOSITORY}" without $PBS_PASSWORD set works fine. This prompts me for the password of root@pam and the backup runs successfully. But I would like to create a cron job for the backup and authenticate with an API Token. I have set up a token for root@pam and added permissions for it with DatastoreAdmin on /datastore, Propagate is set to "Yes". The token is enabled and not expired.

The following env vars have been set on the PVE host:

Code:
export PBS_REPOSITORY=******
export PBS_TOKEN_NAME="root@pam!tokenId"
export PBS_PASSWORD=******

I get the following error message:

Error: permission check failed.

Trying with a different user / API Token gives the same error. Changing Token permissions to Admin and/or setting the permission path to / does not help. I tried rebooting the servers, which does not help. I am using PVE 9.0.11 and PBS 4.0.18.

I would appreciate some help on this, thanks!