An open API service indexing awesome lists of open source software.

https://github.com/mastermindg/gdrive_sync

Docker Container To Sync a Folder to Google Drive
https://github.com/mastermindg/gdrive_sync

docker google raspberry-pi

Last synced: 12 months ago
JSON representation

Docker Container To Sync a Folder to Google Drive

Awesome Lists containing this project

README

          

# gdrive_sync

Docker container that syncs a folder to Google Drive.

There are two builds on Docker Hub: ARM and x86.

Follow the following steps:

## 1) Create a new project, or select an existing project
Go to the [credentials page](https://console.developers.google.com/apis/credentials) in the Google Developer Console.
![](https://raw.githubusercontent.com/gimite/google-drive-ruby/master/doc/images/create_project.png)

## 2) Enable Google Drive API
Go [here](https://console.developers.google.com/apis/library/drive.googleapis.com/?q=drive) and click Enable

## 3) Create a Token
1. Click "Create credentials" -> "OAuth client ID".

![](https://raw.githubusercontent.com/gimite/google-drive-ruby/master/doc/images/oauth_client_id.png)
1. Choose "Other UI" for "Application type".

![](https://raw.githubusercontent.com/gimite/google-drive-ruby/master/doc/images/app_type_other.png)
1. Choose User data for "What data will you be accessing?"
1. Click "What credentials do I need?"
1. Click "Create client ID"
1. Enter a Product Name for "Product name shows to users"
1. Click Done
1. Click the client ID in the list - i.e. "Other client 1"
1. Create a file config.json which contains the client ID and client secret from the page that you're on now, which looks like:
```
{
"client_id": "xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
"client_secret": "xxxxxxxxxxxxxxxxxxxxxxxx"
}

```

## 3) Get Started!

The start.sh script will make sure you're ready to go. Follow the on-screen instructions to get going. You'll need to authenticate against your account so be prepared to open up a browser window. Once you're ready you'll need to pick a folder to mount to the container. This folder will be where you're downloading files to, i.e. /myshare/files

```
./start.sh
```