Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 668 Bytes

File metadata and controls

23 lines (18 loc) · 668 Bytes

gdrive-sync

Python script and wrapper to sync files from google drive to local drive. This is meant to be run as a cronjob once a day.

Installation

Create virtual environment and install pydrive:

mkdir venv
virtualenv -p `which python3` venv
. venv/bin/activate
pip install -U pip
pip install pydrive

Get your client ID and client secret from google cloud console. More information on how to do this can be found here: https://pythonhosted.org/PyDrive/quickstart.html

Now configure settings.yaml from template.

Run python sync-client.py and follow instructions. You should now have a file creds.json.

From now on, you can run sync-wrapper.sh.