r00tat / grive2

Docker Container for grive2
GNU General Public License v3.0
0 stars 6 forks source link

how to keep container running #1

Closed juan11perez closed 6 years ago

juan11perez commented 6 years ago

Thank you for sharing this container. I got the initial sync done. I can then do subsequent syncs by typing this in the command line docker run --rm -it -v $(pwd):/drive paulwoelfel/grive2

but how do you keep the service running? If I try to set it up in docker compose the container keeps crashing.

thank you.

r00tat commented 6 years ago

Grive2 doesn't support continuous sync:

https://github.com/vitalif/grive2/blob/master/README.md

There are a few things that Grive does not do at the moment:

continously wait for changes in file system or in Google Drive to occur and upload. A sync is only performed when you run Grive (there are workarounds for almost continuous sync. See below).

r00tat commented 6 years ago

You could use a start script like bash -c "while [[ true ]]; do grive; sleep 60; done"