Google Broke this integration, this docker image does not work anymore.
Docker Container for grive2 by vitalif
Variable | Description |
---|---|
PARAMS | Passes the parameters to grive2. see Grive Settings bellow |
ID | Your Google Client ID |
SECRET | Your Google Secret |
CODE | Your Google Code |
CRON | Cron Schedule |
PERM | Unix Permissions to set on all files in folder |
docker run -it -e ID=CLIENT_ID -e SECRET=SECRET -v /your/host/folder:/drive agusalex/grive2
Now you can run it without the environmental variables as these get saved into the folder, just run it like this so that it stays like a background process:
docker run -v /your/host/folder:/drive agusalex/grive2
If you already have your response code you can use this (warning this will expose your credentials to anyone with access to the computer)
docker run -it -e ID=CLIENT_ID -e SECRET=SECRET -e CODE=CODE -v /your/host/folder:/drive agusalex/grive2
You can always grab your response code by appending your ID to this URL:
For setting your own Grive configs for example syncing only one folder with -s you may use the PARAMS environmental variable as so:
docker run -it -v /your/host/folder:/drive -e PARAMS="-s folder_name" agusalex/grive2
Parameter | Description |
---|---|
-s your_folder | Single subdirectory to sync (remembered for next runs) |
--ignore regex | Perl RegExp to ignore files (matched against relative paths, remembered for next runs). |
--new-rev | Create new revisions in server for updated files. |
--force | Force grive to always download a file from Google Drive instead of uploading it. |
--dry-run | Only detect which files need to be uploaded/downloaded, without actually performing them. |
--upload-only | do not download anything from Google Drive, only upload local changes. |
For more info on Grive2, all docs can be found here https://yourcmc.ru/wiki/Grive2