[SOLVED] proxmox-backup-client environment variables _FILE

bofh80

New Member
Oct 16, 2023
4
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!