rclone - include Service account blobs to your config

COUNT=0; for i in $(find . -iname "*.json");do ((count=count+1));VAL=`cat ${i} | jq -c '.'` ; echo "[dst$count]";echo "type = drive";echo "scope = drive";echo "service_account_credentials = $VAL" ;done > conf
For easy portability you can include you service account blobs directly to your rclone config. So it generate a rclone config like the following: [dst977] type = drive scope = drive service_account_credentials = {"type":"service_account","project_id":"saf-ju66hcgi8qf8zidhvfww4oxwe7","private[.................] }
Sample Output
[dst977]
type = drive
scope = drive
service_account_credentials = {"type":"service_account","project_id":"saf-ju66hcgi8qf8zidhvfww4oxwe7","private[.................] }
[dst978]
type = drive
scope = drive
service_account_credentials = {"type":"service_account","project_id":"saf-ju66hcgi8qf8zidhvfww4oxwe7","private[.................] }
[....]

1
By: dbiesecke
2020-06-19 19:38:59

What Others Think

Choices mod apk download. https://apkgreat.com/choices-stories-you-play-mod-apk/
Garland147 · 5 weeks and 4 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Carter's Coupon Codes , please visit out website www.uttercoupons.com.
adam062 · 5 weeks and 3 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best TSplus Coupon Code , please visit out website www.uttercoupons.com.
adam062 · 5 weeks and 3 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Promo code for stadium goods , please visit out website www.uttercoupons.com.
adam062 · 5 weeks and 3 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Promo code for stadium goods , please visit out website www.uttercoupons.com.
adam062 · 5 weeks and 3 days ago
Great posts! I am actually getting ready to across this information, is very helpful my friend. happy wheels
Fiona99 · 3 weeks and 6 days ago
At Attorneys in West Palm Beach, we're in a mission to take out by cutting the barrier by 29, the cloud of mystery surrounding the law. In a language that our customer understands. Check https://attorneysinwestpalmbeach.com/dui-attorney/
lisacshearin77 · 3 weeks and 2 days ago
DUI Attorney
lisacshearin77 · 3 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: