I am new to this and the forums, I am trying to get rclone working on my unraid server with service accounts following this guide:
I got everything setup and working in google drive, shared drive and service accounts connected to it there is just one thing I don't understand and that is this config in the rclone.conf:
[gdrive]
type = drive
scope = drive
service_account_file = /mnt/user/appdata/other/rclone/service_accounts/sa_gdrive.json
team_drive = TEAM DRIVE ID
server_side_across_configs = true
Specifically what is this file? sa_gdrive.json I have nothing like this generated in the Autorclone steps and how do I get it? Is there a guide in google cloud to create this file?
Service Account Credentials JSON file path Leave blank normally. Needed only if you want use SA instead of interactive login.
Leading ~ will be expanded in the file name as will environment variables such as ${RCLONE_CONFIG_DIR}.
Config: service_account_file
Env Var: RCLONE_DRIVE_SERVICE_ACCOUNT_FILE
Type: string
Default: ""
Does not tell me how to generate that file? I kind of want to understand that I am sorry but I am totally new to this I had to watch a guide on youtube in a language I did not understand to fill all the gaps in the other guides.
To create a service account and obtain its credentials, go to the [Google Developer Console].
You must have a project - create one if you don't.
Then go to "IAM & admin" -> "Service Accounts".
Use the "Create Credentials" button. Fill in "Service account name" with something that identifies your client. "Role" can be empty.
Tick "Furnish a new private key" - select "Key type JSON".
Tick "Enable G Suite Domain-wide Delegation". This option makes "impersonation" possible, as documented here: [Delegating domain-wide authority to the service account]
These credentials are what rclone will use for authentication. If you ever need to remove access, press the "Delete service account key" button.
I dont understand why this is not a part of the other guides? I mean I auto generated 100 services accounts but I still need to create this one credential to use them all or?
So even if I create 100 Service Accounts to be used for transfer I still only will use this one Service Account File in the reclone_conf? I used the guide I linked which refers to this one: