[SOLVED] proxmox-backup-client environment variables _FILE

bofh80

New Member
Oct 16, 2023
2
0
1
Hi I'm trying to use:

https://pbs.proxmox.com/docs/backup-client.html#environment-variables
PBS_PASSWORD_FILE=/etc/proxmox/filename1
PBS_ENCRYPTION_PASSWORD_FILE=/etc/proxmox/filename2

Contents of filename1 would be "ActualPassword" (no quotes)

But as soon as I run the client i get prompted for the password:

Password for "user@pbs":
Followed by
Encryption Key Password:

The user is part of the environment var "PBS_REPOSITORY" and it's picking that up without issue.

If i set "PBS_PASSWORD=ActualPassword" and the same for "PBS_ENCRYPTION_PASSWORD=" Then proxmox-backup-client picks up those values and carry's on without prompting. (But I need to be able to use the _FILE var's instead)

Can any one help confirm the issues or point out what I might be doing wrong?

Many Thanks
 
Hi,
seems to work for me. Can you share the output of the following?
Code:
proxmox-backup-client version
stat /etc/proxmox
stat /etc/proxmox/filename1
# at the time you would run the proxmox-backup-client command
env | grep PBS
 
Hi,
seems to work for me. Can you share the output of the following?
Code:
proxmox-backup-client version
stat /etc/proxmox
stat /etc/proxmox/filename1
# at the time you would run the proxmox-backup-client command
env | grep PBS
Hi Fiona,
Thank you very much. Sorry for the delay in getting back to you.
Checking the version of client sorted it. Was on an older version than expected. (1.X..something)
Didn't realise that the client isn't kept up to date in the older debian repo's.
Cheers!
 

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!