A python script to sync your google drive contents.
:warning: This repository is not maintained anymore. Some of the forks might be more up-to-date.
pip install --upgrade google-api-python-client
or
easy_install --upgrade google-api-python-client
client_secrets_sample.json
and add your Google API client id and client secret (If you don't have one, get it here).client_secrets.json
.python drive.py
, a browser window/tab will open for you to authenticate the script.Following command line options are available.
--destination - Path to the folder where the files have to be downloaded to. If not specified, a folder named downloaded
is created in the current directory.
--debug - If present (accepts no value), every step will be logged to the log file.
--logfile - Path to the file to which the logs should be written to. By default, writes to drive.log
in the current directory. The file will be overwritten every time the script is run.
--drive_id ID of the folder which you want to download. By default, entire "My Drive" is downloaded.