Skip to content

Commit 5f0805b

Browse files
committedSep 13, 2020
Added separate requirements list for setup scripts
1 parent 9c7af48 commit 5f0805b

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed
 

‎README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ Install Docker by following the [official docker docs](https://docs.docker.com/e
4141
sudo pacman -S docker python
4242
```
4343

44+
- Install dependencies for running setup scripts:
45+
```shell script
46+
pip3 install -r requirements-cli.txt
47+
```
48+
4449
## Setting up config file
4550
```
4651
cp config_sample.env config.env
@@ -100,26 +105,27 @@ sudo docker run mirror-bot
100105
# Using service accounts for uploading to avoid user rate limit
101106
For Service Account to work, you must set USE_SERVICE_ACCOUNTS="True" in config file or environment variables
102107
Many thanks to [AutoRClone](https://github.com/xyou365/AutoRclone) for the scripts
108+
**NOTE:** Using service accounts is only recommended while uploading to a team drive.
103109
## Generating service accounts
104110
Step 1. Generate service accounts [What is service account](https://cloud.google.com/iam/docs/service-accounts)
105111
---------------------------------
106112
Let us create only the service accounts that we need.
107-
**Warning:** abuse of this feature is not the aim of autorclone and we do **NOT** recommend that you make a lot of projects, just one project and 100 sa allow you plenty of use, its also possible that overabuse might get your projects banned by google.
113+
**Warning:** abuse of this feature is not the aim of this project and we do **NOT** recommend that you make a lot of projects, just one project and 100 sa allow you plenty of use, its also possible that over abuse might get your projects banned by google.
108114

109115
```
110-
Note: 1 service account can copy around 750gb a day, 1 project makes 100 service accounts so thats 75tb a day, for most users this should easily suffice.
116+
Note: 1 service account can copy around 750gb a day, 1 project can make 100 service accounts so that's 75tb a day, for most users this should easily suffice.
111117
```
112118

113119
`python3 gen_sa_accounts.py --quick-setup 1 --new-only`
114120

115-
A folder named accounts will be created which will contain keys for the service accounts created
121+
A folder named accounts will be created which will contain keys for the service accounts
116122

117123
NOTE: If you have created SAs in past from this script, you can also just re download the keys by running:
118124
```
119125
python3 gen_sa_accounts.py --download-keys project_id
120126
```
121127

122-
### Add all the service accounts to the Team Drive or folder
128+
### Add all the service accounts to the Team Drive
123129
- Run:
124130
```
125131
python3 add_to_team_drive.py -d SharedTeamDriveSrcID

‎requirements-cli.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
oauth2client
2+
google-api-python-client
3+
progress
4+
progressbar2
5+
httplib2shim
6+
google_auth_oauthlib
7+
pyrogram

0 commit comments

Comments
 (0)
Please sign in to comment.