Skip to content

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.

Notifications You must be signed in to change notification settings

kunfoo/gdrive-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published