Giter VIP home page Giter VIP logo

sa-guide's Introduction

sa-guide

Instructions to create service accounts and use them with rclone.

Do I need service accounts?

  • In most cases, no. The upload, download and api quotas for Google accounts are sufficient for most users. Quotas are 750GB upload, 10TB download per day.
  • If you plan to upload, copy or sync > 750Gb in a day then you might want to set up and use service accounts.
  • For example 10 service accounts will have a combined upload quota of 7.5TB (10 x 750GB).

Below is a guide and some tools to help you get it all working.


NOTE: Please take the time to read the document below and any readme in the repos. The scripts require a basic knowledge of bash, setting variables and permissions (e.g. chmod +x to run scripts in bash).


  1. Create a Google Group. Go to groups.google.com and create a group. You can also use an existing group.

  2. Create Google service accounts with the sa-gen script. https://github.com/88lex/sa-gen

  3. Add your service accounts to a Google group. You can add service accounts to a group manually or in bulk.

MANUAL: From groups.google.com choose the group you want to use. Choose ‘Manage Members’ on the right, then choose ‘Direct add members’ on the left. Enter the service account email addresses you wish to add.

BULK: Go to this link https://admin.google.com/ac/groups . Choose your group name. Click the Members section. Hover over the yellow + sign and choose Bulk Add. The pop up will explain how to download a csv template to add your service account IDs and then re-upload the csv to the group. [ Find cli command to simplify? GAM will do but requires install. ]

  1. Add the google group to your source and destination Team Drives and/or My Drive folders.
    Team Drives: Right click the Team Drive, choose Add Members and add the Group email. Give Manager or Content Manager permission to the Group. . My Drive: Right click the folder in My Drive, click Share then add the Group email.

  2. Configure sasync or other script to copy/sync files to shared TDs/folders using your service accounts. Sasync: https://github.com/88lex/sasync sasync instructions are in the Readme.md on github.



CREDITS: The scripts and methods are based on ideas/code/tools from ncw, max, sk, rxwatcher, l3uddz, zenjabba, dashlt, mc2squared, storm, physk and others. If I forgot anyone no offense intended. Ping me and I'll add you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.