"Google Drive uploader" Python tool feature image

This Python 3 script allows to archive a local folder, as a ZIP file, and upload it to a Google Drive folder. It allows to easily backup a folder from a server for example.

By using the very specific OAuth2 scope https://www.googleapis.com/auth/drive.file, the token generated for this app only gives access to Google Drive and only to the folder and the files this script has created (or the user has decided to give access to). If the token is leaked it is less dangerous than disclosing the full Google account credentials!

Here is how this permission is displayed by Google when granting access to the application:

You can review or revoke this given permission on https://myaccount.google.com/permissions:

gdrive-uploader on GitHub