Two volume layouts
| Layout | Traits |
|---|---|
bind mount ./data:/data (default) | Files visible; backup = copy; ownership comes from the host and, when wrong, the server refuses to start and prints the chown command |
named volume novara-data:/data | Zero permission issues (Docker seeds the image's ownership); the trade-off is files outside your directory tree — backups need a temporary container with tar |
Either way: the data directory must be on a local disk. SQLite's WAL depends on shared memory and file locks; on NFS / SMB network shares it is a corruption risk, not a performance issue.
Backup and restore
docker compose stop novara-sync
cp -a ./data ./data-backup-$(date +%Y%m%d)
docker compose start novara-syncRestoring is the same in reverse: stop the server → swap the backup directory back in → start. Copy the whole directory, including novara-sync.db and spaces/.
The data directory holds nothing but ciphertext — less sensitive than the client's local vault — but treat it as sensitive files anyway. The image deliberately ships no sqlite3 CLI (one less attack surface); to inspect the database, open ./data/novara-sync.db from the host with your own tools.
Upgrading
docker compose pull
docker compose up -d- The v4 container format and storage schema do not change; data is forward-compatible by construction.
- Back up before upgrading (previous section).
- If your regular setup includes Caddy (https profile), keep the same
docker compose --profile https up -dform used at first start. - Rollback = move the image back to the old tag and restore the pre-upgrade data-directory backup.
Post-upgrade checks
docker compose ps: both services running, novara-sync(healthy).- Run one manual sync from the desktop and confirm versions advance normally.
- Restart the container (or the NAS) — the data survives. That is the acceptance bar, not an optional extra.