I am pulling my hair trying to have a cron based backup setup.
First I am trying to have this command working without being croned and it doesn't!
The global semantic with the proxmox-backup-client is really very confusing.
I have managed to do the initial backup using root@pam account with no problem.
Now I am trying to move this to a more automated and secured way using auth token (I don't want my root passwd to be exposed anywhere on any file).
So I have decided to change the owner of the first backup to my user@pbs!token but it keeps no saying that I have "no permission on datastore".
The datastore seems to be considered as the Global Datastore and note the directory where I want to actually backup.
But my permission seems "ok" and have been set correctly (AFAICT):
I have set the token using the environment variable :
I am not sure what to do, if I need to set another DataStore ?
First I am trying to have this command working without being croned and it doesn't!
The global semantic with the proxmox-backup-client is really very confusing.
I have managed to do the initial backup using root@pam account with no problem.
Now I am trying to move this to a more automated and secured way using auth token (I don't want my root passwd to be exposed anywhere on any file).
So I have decided to change the owner of the first backup to my user@pbs!token but it keeps no saying that I have "no permission on datastore".
The datastore seems to be considered as the Global Datastore and note the directory where I want to actually backup.
Code:
root@proxmaster:/etc# proxmox-backup-client backup mailao-archive.pxar:/mnt/pve/Macropus_mailao/ --repository 'gregober@pbs!gregober_PBS@192.168.21.3:BackupPMX'
Starting backup: host/proxmaster/2021-04-09T15:49:45Z
Client name: proxmaster
Starting backup protocol: Fri Apr 9 17:49:45 2021
Error: no permissions on '/datastore/BackupPMX'
But my permission seems "ok" and have been set correctly (AFAICT):
Code:
root@proxmaster:/etc# proxmox-backup-client change-owner host/proxmaster 'gregober@pbs!gregober_PBS' --repository 192.168.21.3:BackupPMX
Password for "root@pam": **********
I have set the token using the environment variable :
Code:
root@proxmaster:/etc# export PBS_PASSWORD="90ded90d-token_id_token_id-ef0f70e9adcb"
I am not sure what to do, if I need to set another DataStore ?