get rid of password prompt on proxmox-backup-client

donniev

New Member
Dec 16, 2024
3
0
1
Debian bookworm bare metal client

This command successfully backs up the system but prompts me for. "root@pam" password.
I really want to put the command in a cron task and automate it without the prompt.
Any suggestions?
 
Thanks,
okay I have a user "backup"
and I have created the api token for the user: zigbee1217
I then created envars:
:~# env
PBS_PASSWORD=<MYAPIKEYSECRET>
PBS_REPOSITORY=backup@pbs!zigbee1217@pbs.lan:Synology
and run the command
:~# proxmox-backup-client backup rootfs.pxar:/
Starting backup: host/zigbee/2024-12-17T15:35:34Z
Client name: zigbee
Starting backup protocol: Tue Dec 17 08:35:34 2024
Error: missing permissions 'Datastore.Backup' on '/datastore/Synology'


What am I missing?
 
I don't know if I am getting closer or not. I executed the above on the pbs server and it executed correctly.
However now the error is:
Error: backup owner check failed (backup@pbs!zigbee1217 != root@pam)
Here are the ACL
ugid │ path │ propagate │ roleid │
╞═══════════════════════╪══════════════════════╪═══════════╪═════════════════╡
│ backup@pbs │ /datastore/Synology │ 1 │ DatastoreAdmin │
├───────────────────────┼──────────────────────┼───────────┼─────────────────┤
│ backup@pbs │ /datastore/Synology2 │ 1 │ DatastoreAdmin │
├───────────────────────┼──────────────────────┼───────────┼─────────────────┤
│ backup@pbs!zigbee1217 │ /datastore/Synology │ 1 │ DatastoreBackup │
├───────────────────────┼──────────────────────┼───────────┼─────────────────┤
│ backup@pbs!zigbee1217 │ /datastore/Synology │ 1 │ DatastoreAdmin │
├───────────────────────┼──────────────────────┼───────────┼─────────────────┤
│ backup@pbs!zigbee1217 │ /datastore/Synology2 │ 1 │ DatastoreBackup │
├───────────────────────┼──────────────────────┼───────────┼─────────────────┤
│ backup@pbs!zigbee1217 │ /datastore/Synology2 │ 1 │ DatastoreAdmin │
└───────────────────────┴──────────────────────┴───────────┴─────────────────┘
users:
root@pbs:~# proxmox-backup-manager user list
┌────────────┬────────┬────────┬───────────┬──────────┬───────────────────┬─────────┐
│ userid │ enable │ expire │ firstname │ lastname │ email │ comment │
╞════════════╪════════╪════════╪═══════════╪══════════╪═══════════════════╪═════════╡
│ backup@pbs │ 1 │ never │ │ │ │ │
├────────────┼────────┼────────┼───────────┼──────────┼───────────────────┼─────────┤
│ root@pam │ 1 │ never │ │ │ donvawter@mac.com │ │
└────────────┴────────┴────────┴───────────┴──────────┴───────────────────┴─────────┘
and datastores
root@pbs:~# proxmox-backup-manager datastore list
┌───────────┬────────────────┬─────────────────────────┐
│ name │ path │ comment │
╞═══════════╪════════════════╪═════════════════════════╡
│ Synology │ /mnt/synology │ PBS Synology datasource │
├───────────┼────────────────┼─────────────────────────┤
│ Synology2 │ /mnt/synology2 │ Datastore on Synrack │
└───────────┴────────────────┴─────────────────────────┘
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!