Skip to Content
Nakama

Backup and restore

Export

Platform admins can export local Nakama data from Settings → Workspace → Preferences → Export ZIP.

The export is a .zip backup of the configured Nakama data root, which defaults to ~/.nakama and follows NAKAMA_CONFIG_DIR when set.

Treat export ZIPs as sensitive. They can include:

  • Provider settings and encrypted API keys
  • Auth data
  • Org and profile workspaces (soul files, memory, artifacts)
  • Org-level MEMORY.md, memory-archive/, and memory-history/ (see Org memory)
  • Custom tools and skills
  • Plugin packages and organization plugin data (snapshotted, not copied mid-write)
  • The local SQLite database when it lives under the Nakama root

The ZIP does not contain NAKAMA_SECRETS_KEY or plaintext Settings keys. Keep the matching master key in a separate backup. Supply it before importing the ZIP. Nakama rejects an import when it cannot decrypt the saved keys.

Scheduled backups

Set NAKAMA_BACKUP_DIR to a directory outside the data root, and the server writes the same export there once a day as nakama-<time>.zip.enc. It keeps the newest 7.

Each file is encrypted with NAKAMA_SECRETS_KEY, which a restore needs anyway. Import accepts the .enc file directly and decrypts it with the current key. After a key rotation, older backups need the old key.

The first backup after a restart is due a day after the newest file already there, so restarts do not push older backups out. The server refuses to start if the directory is inside the data root.

Import

Importing is a whole-install restore:

  1. Preview the ZIP first
  2. Confirm restore to replace the current local data root

The import accepts a ZIP up to 100 MB, up to 10,000 entries of 100 MB each, and up to 500 MB of uncompressed data. A larger archive is rejected before restore. Plan for downtime during restore because this replaces the active data root rather than merging individual records.

On a fresh install, you can also restore during First-time setup before creating a new admin account.

Restored plugins stay disabled until an organization admin enables them in Settings → Agent tools → Plugins. If a restored package no longer matches its stored hash, that release stays unavailable and must be installed again.

Teams and shared resources

A full backup retains organization and team relationships, saved team conversations, and memory. Restore does not revive publications removed after the backup. Only matching publications that are still authorized remain available. Restoring into a fresh installation leaves shared references inactive because no existing publication authority can be verified.

After restore, a parent admin can review resources in System → Organization and publish permitted sources again. Shared agents keep their saved team work when access is unavailable. New turns use restored configuration after the server reloads its sessions.

An organization export contains that organization's work. It does not include parent secrets or unpublished parent files. Organization exports cannot replace a whole installation through restore.

Profile packs (single agent)

To move one profile without a full-root backup, open Agent, select the profile, and choose Export or Import. See Export and import an agent pack.

Those packs deliberately omit secrets and are not interchangeable with Export ZIP above.

Desktop data

Nakama Desktop uses ~/.nakama-desktop for server data instead of the normal ~/.nakama root. Its browser session lives in Electron's Nakama Desktop Electron app-data directory. The desktop app does not import an existing web server's ~/.nakama data, and restoring a normal Export ZIP doesn't automatically merge those stores.

To move Desktop server data, quit the app and copy the complete ~/.nakama-desktop directory. To restore it on another machine, place the copy at ~/.nakama-desktop before opening the app. Keep the browser session directory too when you want the saved login and window state. See Desktop for supported platforms and local-server behavior.

Desktop packaging and source builds are separate from backups. Build on macOS ARM64 or Windows x64. The macOS package targets macOS 15 or later on Apple Silicon; the Windows package targets Windows 10 build 19041 or later through the Microsoft Store. Cloud models still require internet access and provider credentials.

Docker volumes

When Nakama runs in Docker, persist /nakama/data with a named volume or bind mount. Back up that volume (or use Export ZIP from the dashboard) before upgrades or migrations.

See Docker for volume setup.

Next steps

On this page