[SOLVED] proxmox-backup-client garbage-collect permission

Stefano Giunchi

Renowned Member
Jan 17, 2016
91
13
73
50
Forlì, Italy
www.soasi.com
I want to schedule my datastores garbage collection with cron, because if I use WebUI scheduling I risk to overlap GC jobs (my PBS is on spinning disks).

I see that to use the command proxmox-backup-client garbage-collect permission mydatastore, I need to write the user password in the repository URL or in the PBS_PASSWORD environment variables, thus I have to write it in the script, in clear.

Even worse, it seems that GC command can be run only by root, thus I have to write the root password in the script, in clear.

I ask if there's a better/more secure way to script GC (or any proxmox-backup-client datastore related command) so that jobs don't overlap.
 

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!