Skip to content

Sync with google drive

Using NextCloud instead.

It is possible to save the recordings to google drive automatically although the feature is very experimental.

When used, the whole event store — the recording.db file — is uploaded to your drive after every change (see where your data lives), and a legacy recording.json found on the drive is merged into the local event store on start. The old json-state behaviour (rewriting and merging whole states) is gone with the event store. On the other hand, audio recordings also will be saved but the code will erase current audio saved on the drive! There is no "merging" ability to save the audio since they are simply uploaded as a zip folder. Contribution to make this system better are welcomed but it works for me so I won't change it myself :).

Set up credentials

To enable the bark_monitor to save to your google drive, follow this tutorial to enable the Google API and configure the OAuth consent screen of your app. At the end of the process you should get a credentials.json. Add the path to the credentials file in the config for the key:

"google credentials": "clients_secrets.json"

You can now send /login to the bot to connect to your google drive account and enable automatic saves.