Moving a community and backups
A community belongs to its owner, not to its host. Moving it takes three steps:
-
The owner signs a new delegation naming the new host (from their app), and publishes it on the old host, so members learn where to go.
-
The old host’s operator exports the community:
Terminal window zaun-host export --data-dir D --community <ID> --out community.zaun --passphrase-file pass.txtThe bundle holds the members, roles, channels, bans, admission policy, history, audit log and attachment files, is signed by the old host and encrypted with the passphrase (mode 0600, at least 16 bytes). Invitation secrets never leave. Stop
runfirst. -
The new host’s operator imports it:
Terminal window zaun-host import --data-dir D --passphrase-file pass.txt community.zaunThe import checks every signature and hash first, and that the owner’s delegation names this host. If the owner published the delegation after the export, pass it with
--descriptor F(JSON withdescriptoranddelegation). Stoprunfirst.
Members’ apps follow on their own (communityMoving, then communityMoved events in
zaun-client) and keep their identity, roles and history. Bans stay in force.
Backups
Section titled “Backups”An export is also a backup of one community. Back up, too:
host.key: without it, owners must delegate to a new host key;- the owner’s client directory: the community’s root key lives there, and nothing can replace it.