According to the documentation here at the bottom, it is best to use API Tokens to connect PBS to PVE as storage. I can't get that to work though.
The steps I tried in order are:
I'm using the latest versions on both PVE and PBS from the no_subscription repo which is PVE 6.3-6 and PBS 1.0-9 today.
My two questions are:
The steps I tried in order are:
- Add user myvmhost@pbs, enabled and never expiring using <somepass>
- Add apitoken for myvmhost@pbs with name myvmhost, the secret is <somsecret>
- On my datastore 'data', I have added API Token permission for API Token 'myvmhost@pbs!myvmhost' with role Admin and propagate selected
- Trying to add the datastore yields the following error
Code:root@MyVMHost:~# pvesm add pbs PBS --datastore /datastore/data --server 192.168.0.18 --fingerprint <somefingerprint> --username myvmhost@pbs\!myvmhost --password Enter Password:<somesecret> create storage failed: error during cfs-locked 'file-storage_cfg' operation: PBS: Cannot find datastore '/datastore/data', check permissions and existance!
I'm using the latest versions on both PVE and PBS from the no_subscription repo which is PVE 6.3-6 and PBS 1.0-9 today.
My two questions are:
- How do I add PBS as storage using an API token
- What is the minimum role if I want to be able to read/write backups
- Can I disable the user under configuration -> access control -> user management while still still using it's API token. My goal with this is to prohibit login using password and use API keys only for PVE.