diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 30 |
1 files changed, 21 insertions, 9 deletions
@@ -1,6 +1,6 @@ # Teams to rclone -powershell script to collect all the drive_ids in sharepoint associated to a team and create a union mount. Read only permissions for creating local backups and/or archives +Python script to collect all the drive_ids in sharepoint associated to a team and create a combine mount. Read only permissions for creating local backups and/or archives ## Why? @@ -13,9 +13,8 @@ Becuase microsoft dont like to make things easy and create sharepoint subsites f 3. Once the app has been made make note of the Application (client) ID and Directory (tennant) ID 4. Go to Certificates & Secrets > Client secrets and create a new client secret, set the expire and click add 5. Once it has been generated make a note of the Value, once you change page that will be stared out and you wont be able to see it again. -6. In your config.json set the `tennantId`, `clientID` and `client secret (Value)` -7. in the remote-template.conf set the `client ID`, `client secret (value)`, `tennantID` and replace `<tenant>` with your tenantID -8. Go to `API permissions > Add a permission > Microsoft Graph > Application permissions` and add the below permissions +6. In your config.json set the `tenantId`, `clientID` and `clientSecret` (Value) +7. Go to `API permissions > Add a permission > Microsoft Graph > Application permissions` and add the below permissions ```plain Channel.ReadBasic.All @@ -26,16 +25,29 @@ Sites.Read.All Team.ReadBasic.All ``` -9. Once those have been added go to `Add a permission > Sharepoint > Application permissions` and add the below permission +8. Once those have been added go to `Add a permission > Sharepoint > Application permissions` and add the below permission ```plain Sites.Read.All ``` +9. Grant admin consent. + +## Flags + +```txt +--team-name [TEAM_NAME ...] + Team display name prefix(es). Required unless --team-id +--team-id Team id (skips name lookup). Required unless --team-name +--exact Exact displayName match +--config Path to config.json +-o, --outdir Output directory for .conf files +-h, --help Show help +``` + ## Usage -- Run the script -- Enter your team name when it asks +- Make sure you have python 3.7+ and rclone in your PATH +- Run `python3 generate_config.py --team-name "Team One" "Team Two"` - Wait -- Run `rclone lsd --config ./rclone TEAM_NAME_union:` when the script is finished to confirm you can see everything -- If the team only contains standard channels it will create a config with 1 remote +- Run `rclone lsd --config ./Team_One.conf Team_One_combine:` when the script is finished to confirm you can see everything |
