I manage a few rclone processes, one for mount, one for batch copy, etc.
I'd like to have each process use their own Google Drive Client ID, but use the same global rclone config. I've authorized each Client ID. Then I provide the client ID and secret via Environment variables in systemd. But that doesn't seem to work as each rclone process fight over the token parm in the single rclone.conf.
Does anyone have any ideas on how this could be managed? Non-ideal solutions I can think of are:
Not sure that's ideal as you have to manage 3 tokens so you need a config for each token. If your config is static, why not have 3 sections and just let it roll? What's the downside?
I guess the downside is having to manage n remotes in a config which could potentially get confusing. Especially if you want to associate multiple remotes with a single client ID.
rclone needs write access for each token so you'd get some funkiness trying to share.
You could do a client ID for each one I guess as it depends on how much you want to control.
Is there a reason you are that concerned about errors? I kind of fire and forget these days as things just work with primarily no errors in the console so I'd have no reason to check.
The main reason I'd like to do this is to have better insights into the Google API console. So take the recent HTTP 429 API problems, for example. From the API console, it wasn't immediately clear which of my rclone processes were impacted. Since they were on a single API key, I couldn't tell.