050-sync-download-create-empty-db.md

This commit is contained in:
rcmerci
2026-03-06 21:00:02 +08:00
parent c73fdb8c6f
commit fefab4d00f
13 changed files with 599 additions and 54 deletions

View File

@@ -107,6 +107,8 @@ Sync download behavior:
- `sync download` requires `--graph <name>`.
- If a local graph with the same name already exists, the CLI returns `graph-exists`.
- If no remote graph with that name exists, the CLI returns `remote-graph-not-found`.
- `sync download` starts `db-worker-node` in create-empty mode so local startup does not write `db-initial-data` before snapshot import.
- If the target graph DB is not empty at download time, the CLI returns `graph-db-not-empty` and aborts before import.
- For e2ee remote graphs in headless CLI mode, set `e2ee-password` via `sync config set` (or in `--config`) before download.
Sync config persistence: