When sync runs
The desktop's sync is governed by the master switch and runs automatically at the interval you pick in settings; writing to disk can also trigger it as needed. To push a round right now, click "Sync now" on the encrypted-sync card. Every action lands in the local audit log (never any plaintext or credentials).
No sync while locked: the manual lock, the idle auto-lock and the Windows lock-screen linkage all pause sync first — no network while locked is a hard rule, never bypassed because "the server has a newer version".
How uploads are protected
- Each upload carries the base version (If-Match semantics): "I edited based on version N" declares N.
- If the server is already at N+1 or higher → it refuses with
409 version_conflict, including the current version number (no plaintext). - The payload's SHA-256 digest is checked first, then a constant-time HMAC comparison — a container with tampered metadata never reaches disk.
When a stale version is refused, the client does not silently push the newer content over. Conflict is explicit: you inspect the difference and decide.
How a conflict is resolved
When the desktop opens the conflict panel it shows a per-area diff summary (which areas each side changed), then offers several exits:
- Export both versions — export the local and the cloud version as separate v4 encrypted files; compare or restore either later.
- Take the cloud version — discard the un-pushed local changes and pull the cloud's current version.
- Explicit force overwrite — push the local version over the cloud one; double confirmation required.
On the web side (browser editing), a 409 keeps your edits in memory: you can copy the JSON, export a .novaenc (default; the desktop can restore it directly), export plaintext JSON (double confirmation), force overwrite (double confirmation), or drop this page's changes and take the cloud version. Before a refresh with un-pushed changes, the browser also warns.
Retention and quotas
| Item | Default | Meaning |
|---|---|---|
| Version retention | NOVARA_SYNC_MAX_VERSIONS=10 | Each space keeps the last 10 versions; conflict copies are counted separately and do not crowd out regular versions |
| Space quota | NOVARA_SYNC_QUOTA_BYTES=524288000 (500 MiB) | Total ciphertext cap per space; over the limit returns 507 |
| Per-upload cap | NOVARA_SYNC_MAX_PAYLOAD_BYTES=67108864 (64 MiB) | Request payload cap; over the limit returns 413 with the limit value |
A full space returns 507 quota_exceeded with usedBytes and limitBytes in the error body — "used / limit" is exactly what you need before deleting old versions or raising the quota. All defaults are adjustable through environment variables (see "Server environment variables").
FAQ
The phone can edit — will it overwrite the computer's changes?
Never silently. Editing the same place on both sides triggers a conflict: the phone keeps your edits with exits to resolve, and the computer offers the diff and the two-version choice.
Sync fails with "quota exceeded" — what do I do?
The error carries usage and the limit. Either raise NOVARA_SYNC_QUOTA_BYTES on the server or lower version retention — old versions are pruned automatically to fit.