Since now team drives or shared drives (whichever you may prefer) are not available for free using td.msgsuite.workers.dev
or any such generators.
Even if they are available, they are limited to 100GiB.
This project aims to give a displayable + managable look to the drive storage of service accounts.
Each service account has a 15GiB of drive storage. If you have a 100 service accounts [i.e. use only 1 google cloud project], then you have roughly 1.46 TiB of storage
When you upload files using the web interface, the program automatically detects a service account with enough storage to upload the file, and uploads it to that service account's google drive.
Hence in this way you can exceed the 15GiB storage of your personal drive.
You cannot upload a file whoose size exceeds 15 GiB (Specifically 15784004812 Bytes
or about 14.69GiB
)
Each Gmail account can create 12 projects. i.e. 12*100 service accounts.
Hence you can effectively get 15*12*100 = 18000 GiB of storage, or roughly 17TiB per gmail account
. With the only limitation being file size of each file about 14.7GiB
- [OPTIONAL (if you do not have service accounts)] Create service accounts using AutoRclone or Service Account Utility [Video for using Service Account Utility: Youtube]
- Download the zip of the repository, extract it and paste the
accounts/
folder in it. - Generate a mongodb database uri. Follow step 1 of this tutorial
- Go to your personal google drive, make a folder there named
sa-drive
or whatever you may like. Keep its folder id handy. Share this folder with the google group where your service accounts are there. - Open _config.py using any text editor and paste in the folder id [from step 4] in the parent_id variable.
- Paste the mongodb uri [from step 3] in db_uri variable.
- Choose a suitable username and password. RENAME IT TO
config.py
. Save and exit. - Open command prompt in that folder.
- [OPTIONAL (but recommended)] Run
pip install virtualenv
. Then runvirtualenv venv
,cd venv/Scripts
,activate
,cd ../..
- Run
pip install -r requirements.txt
- Run
python main.py
Read FAQs.
- Generate service accounts using Service Account Utility - Youtube
- Deploy sa-drive - Youtube
- You can view the files in Google Drive as well. [Apart from the sa-drive web interface]
Google Drive:
Web Interface: - You can share/star/rename the files/folders with anyone by using the menu accessible by right clicking the item.
- You can see the size occupied by each service account as well.
- More features can be requested apart from TODO below by creating an issue, or sending it on discord to
jsmsj#5252
orjsmsj
- You can send pull requests too. [Please do 🙏]
- support uploading an entire folder, with subfolders and files
- drag and grop anywhere to upload
- view file (with video player if possible)
- share/unshare selected=> navbar
- rclone/gclone ul/dl