python based cli for google drive. Tested in debian linux and mac os
#disclaimer
This is currently a very early no-support-whatsoever project. If you want to contribute let me know. Im tailoring it to suit my specific needs which are:
- we have several hundered GB on our server including very large video files
- we have hunderesds of direcotires, and duplicate files that make it difficult to navigate
- we have about a dozen user all with auto-syncing accounts.
#setup.
-
follow this tutorial: https://developers.google.com/drive/v3/web/quickstart/python
-
fill out the start of the file for your local directory the same as you did in the tutorial
-
install requirements:
pip install --upgrade google-api-python-client
-
python backup.py
- browse around google drive with
- basic cli commands cd, ls and exit
- tells you i a file does not exist locally (flagged with an N) (not if its newer/older/different)
- caches file informtion for faster navigation
- checks for new files and folders from a top-down tree perspective (ie: does not decend all the way down the first directory, then check from the bottom up)
- used threads to pre-load folder and file information in the background while browsing, so you can quickly navigate.
#coming soon.
- pull / direcotries files to local in background
- add pull requests to start or end of the queue