[SOLVED] could not backup with APItoken

huky

Renowned Member
Jul 1, 2016
70
3
73
45
Chongqing, China
I added a PBS datastore to PVE with username and password.( storage ID: pbsBAK)
Now I add the same datastore to the same PVE with API token of the same user.( storage ID: pbsBAK2)
but I can not see the backup in pbsCCS2 via PVE

proxmox-backup-manager acl list
┌───────────────────┬───────────────────┬───────────┬─────────────────┐
│ ugid │ path │ propagate │ roleid │
╞═══════════════════╪═══════════════════╪═══════════╪═════════════════╡
│ pvebak@pbs │ /datastore/pveBAK │ 1 │ DatastoreBackup │
├───────────────────┼───────────────────┼───────────┼─────────────────┤
│ pvebak@pbs!bak │ /datastore/pveBAK │ 1 │ DatastoreBackup │
└───────────────────┴───────────────────┴───────────┴─────────────────┘

/usr/bin/proxmox-backup-client backup etc.pxar:/etc
......
Error: backup owner check failed (pvebak@pbs!bak != pvebak@pbs)


thank dylanw , i see.

proxmox-backup-client change-owne host/node001 'pvebak@pbs!bak'
 
Last edited:
You can find a good explanation as to why this is happening and the reason for the design choice here [1], but essentially API tokens correspond to a subset of a user, rather than the user itself, so unless the backup is owned by the API token, it will not pass the authentication. You can change the owner of the backup group [2] to the API in case.

[1] https://forum.proxmox.com/threads/snapshot-ownership-and-api-tokens.87863/#post-403174
[2] https://pbs.proxmox.com/docs/backup...ge owner#changing-the-owner-of-a-backup-group