Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ So, it's two-way synchronization of selected folders, which you can run at any t
# Initial setup

1) Turn on Google Drive API [here] (if you have any troubles, check [Python Quickstart guide]).
1) Get your .json client secret config file in [Google API Projects page] and put it in working directory (don't forget to save it as *client-secret.json*)
1) In *upload_to_drive.py* and *download_from_drive.py* file scripts change global variables FULL_PATH and DIR_NAME to your's full folder path and folder's name, which you want to upload/download/synchronize, respectively.
1) Get your .json client secret config file in [Google API Projects page] and put it in working directory (don't forget to save it as *client_secret.json*)
1) In **upload_to_drive.py** and **download_from_drive.py** file scripts change global variables FULL_PATH and DIR_NAME to your's full folder path and folder's name, which you want to upload/download/synchronize, respectively.
1) How to use:
- **python upload_to_drive.py**: To apply changes made on local storage to specific Google Drive folder.
- **python download_from_drive.py**: To apply changes from Google Drive folder to your local storage.
1) First time you run *upload_to_drive.py* or *download_from_drive.py*, it will open browser/new tab, and you will need to authenticate the script (or if it doesn't redirect you, copy the link and do authentification manually).
1) Run *drive_sync.py* script, if you want to apply changes made on local storage to specific Google Drive folder, and run *download_from_drive.py* if you want to apply changes from that Google Drive folder to your local storage.
1) (Optional) put script that you need to cron or any other task planner that you use.
1) Enjoy how simple it is!

Expand All @@ -29,7 +31,10 @@ To run this amazing project, you will need:
sudo pip install --upgrade google-api-python-client
```
(or see this [installation page] for more information)

- oauth2client library:
```
sudo pip install oauth2client
```
- Google Account
- Internet connection

Expand Down