Skip to content

Nextcloud

Nextcloud sync is the recommanded way to sync and save your data.

Add the following parameters in you configuration json file:

"nextcloud_parameters": {
    "py/object": "bark_monitor.cli.get_param.NextCloudParameters",
    "server": "https://server.url",
    "user": "userName",
    "passwd": "password"
},

And sync should be automatically enabled.

What gets synced

The whole event store — the recording.db file — is uploaded after every change (see where your data lives). Two things follow from that:

  • The upload is a single consistent file. Unlike the old recording.json states, the database is never merged or rewritten remotely, so a second device pointing at the same folder cannot clobber your history.
  • Legacy states are migrated in. If a recording.json from an older version is found on the Nextcloud, its history is merged into the local event store on start (once; re-runs cannot duplicate).

The hosted cloud sync can run at the same time as Nextcloud if you also want the dashboard.

Be carfeul that, 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. So make sure to save previous audio file if you start a new bark monitor from scratch or the previuos recordings will be erased.