I'm using pbs 3.4.5 and have created a datastore PBSStorage including the namespace MailboxBackup
When I start a backup on a vm with the following script it works fine, and the backup ends up in the correct namespace:
#!/bin/sh
export PBS_REPOSITORY=pbs: PBSStorage
export PBS_PASSWORD=MyRootPassword
export PBS_FINGERPRINT=MyServerFingerprint
proxmox-backup-client backup root.pxar:/storage/Mailboxes/MyMailbox/ --ns MailboxBackup
However, since it contains the root password I'm not happy with this, so I created a new user, backup@pbs, which is enabled the in the Configuration/Access Control
I created an API token for this user, called BackupToken, and saved the token value.
For the datastore /datastore/PBSStorage/MailBoxBackup I set the permissions to DatastoreBackup for user backup@pbs!BackupToken
Now the script becomes:
#!/bin/sh
export PBS_REPOSITORY=backup@pbs!BackupToken@pbs: PBSStorage
export PBS_PASSWORD=<token value>
export PBS_FINGERPRINT=<Server fingerprint>
proxmox-backup-client backup root.pxar:/storage/Mailboxes/MyMailbox/ --ns MailboxBackup
But the result of the script is now an error:
Error: missing permissions 'Datastore.Backup' on '/datastore/PBSStorage/MailboxBackup'
So, clearly, I am missing something. Any help is appreciated.
Kind regards,
Albert
Note: The space between pbs: PBSStorage should not be there, but it is automatically replaced by
When I start a backup on a vm with the following script it works fine, and the backup ends up in the correct namespace:
#!/bin/sh
export PBS_REPOSITORY=pbs: PBSStorage
export PBS_PASSWORD=MyRootPassword
export PBS_FINGERPRINT=MyServerFingerprint
proxmox-backup-client backup root.pxar:/storage/Mailboxes/MyMailbox/ --ns MailboxBackup
However, since it contains the root password I'm not happy with this, so I created a new user, backup@pbs, which is enabled the in the Configuration/Access Control
I created an API token for this user, called BackupToken, and saved the token value.
For the datastore /datastore/PBSStorage/MailBoxBackup I set the permissions to DatastoreBackup for user backup@pbs!BackupToken
Now the script becomes:
#!/bin/sh
export PBS_REPOSITORY=backup@pbs!BackupToken@pbs: PBSStorage
export PBS_PASSWORD=<token value>
export PBS_FINGERPRINT=<Server fingerprint>
proxmox-backup-client backup root.pxar:/storage/Mailboxes/MyMailbox/ --ns MailboxBackup
But the result of the script is now an error:
Error: missing permissions 'Datastore.Backup' on '/datastore/PBSStorage/MailboxBackup'
So, clearly, I am missing something. Any help is appreciated.
Kind regards,
Albert
Note: The space between pbs: PBSStorage should not be there, but it is automatically replaced by
Last edited:
