So, i configured a pbs and i also added proxmox backup client on a standalone machine and tring to take backup from the standalone machine to the pbs and i added this script to the client machine. I create a new user which is called CBackup i added an admin permission to the datastore/JU-BACKUP and the scrip looks like this
#!/bin/bash
export PBS_PASSWORD='ambdk'
export PBS_USER_AND_API_TOKEN='CBackup@pbs!backup'
export PBS_HOST='10.140.5.224:8007'
export PBS_DATASTORE='JU-BACKUP'
export PBS_REPOSITORY="${PBS_USER_AND_API_TOKEN}@${PBS_HOST}:${PBS_DATASTORE}"
echo $PBS_REPOSITORY $PBS_PASSWORD
proxmox-backup-client backup root.pxar:/home/Database_Backup/ --repository 10.140.5.224:JU-BACKUP
saved it as pbs-client.sh
when i run ./pbs-client.sh it keeps saying
Starting backup protocol: Tue Feb 21 11:20:35 2023
Error: permission check failed.
what is the problem??
#!/bin/bash
export PBS_PASSWORD='ambdk'
export PBS_USER_AND_API_TOKEN='CBackup@pbs!backup'
export PBS_HOST='10.140.5.224:8007'
export PBS_DATASTORE='JU-BACKUP'
export PBS_REPOSITORY="${PBS_USER_AND_API_TOKEN}@${PBS_HOST}:${PBS_DATASTORE}"
echo $PBS_REPOSITORY $PBS_PASSWORD
proxmox-backup-client backup root.pxar:/home/Database_Backup/ --repository 10.140.5.224:JU-BACKUP
saved it as pbs-client.sh
when i run ./pbs-client.sh it keeps saying
Starting backup protocol: Tue Feb 21 11:20:35 2023
Error: permission check failed.
what is the problem??