Skip to content
Documentation
On this page

Storage, backups, and updates

Back up self-host data and key volumes, understand Update available checks, upgrade the Docker container safely, and move from a local Executor.

Self-hosted Executor stores all persistent state and generated keys in /app/data and keeps optional telemetry separately in /app/motel-data (Self-host only).

Before upgrading, stop the container, back up the /app/data volume, pull the new image, remove only the stopped container (docker rm executor-v2), and re-run with the same volume and environment variables.

Prerequisites: Docker host access to your self-host container and volumes. In the dashboard, only organization owner and admin roles see the Update available notice.

You’ll know it worked when the recreated container logs Executor is ready at <BETTER_AUTH_URL>, /health returns {"status":"ok"}, and your existing apps and accounts remain intact.

Volumes and key files

Mount path Default volume What it stores
/app/data executor-v2-data (or pglite-data in Compose) Embedded PGlite database, app source and builds, app data, and auto-generated key files (auth-secret.key and encryption.key, readable only by the server user).
/app/motel-data Container filesystem (ephemeral unless mounted) Bundled telemetry collector storage (EXECUTOR_MOTEL_DATA_DIR, named historically from Motel). Must be separate from /app/data.

Back up /app/data and keys

Back up the entire /app/data volume while the container is stopped (or using an atomic filesystem/volume snapshot):

  • Generated keys: auth-secret.key and encryption.key live inside /app/data. Keep volume backups encrypted and private.
  • Supplied keys (BETTER_AUTH_SECRET, EXECUTOR_ENCRYPTION_KEY): Executor does not write environment-variable overrides to disk. Keep those exact values in your secret manager and supply them on every start.

Keep the same key source across upgrades. If a saved key is missing or invalid for an existing database, startup fails instead of generating a replacement. Changing EXECUTOR_ENCRYPTION_KEY makes existing stored credentials unreadable.

Telemetry storage (/app/motel-data)

By default, replacing the container discards stored telemetry. Mount a separate volume at /app/motel-data if you want traces to survive upgrades.

The bundled collector retains telemetry for at most 7 days and 1 GiB, evicting the oldest entries first (a busy instance hits 1 GiB first). When exports arrive faster than disk ingestion, the collector drops excess exports rather than buffering them in memory; inspect drop counts with docker exec executor-v2 executor-host telemetry /api/ingest.

If you upgraded from an older image that ran Motel and mounted a persistent /app/motel-data volume, its legacy motel subdirectory (up to ~1 GiB) is no longer read or removed automatically. Delete it manually with:

docker exec executor-v2 rm -rf /app/motel-data/motel

Updates

Daily update check (Update available)

Self-host checks at most once a day whether a newer Executor release exists and shows organization owner and admin users an Update available tag at the bottom of the sidebar with a How to update to v<version> button that opens the How to update dialog. Regular member users see nothing.

How the check works:

  • Sends one GET request to <EXECUTOR_NPM_REGISTRY>/-/package/executor/dist-tags (default https://registry.npmjs.org) with no query string, cookies, or identifying headers.
  • Follows no HTTP redirects, ignores HTTP_PROXY and HTTPS_PROXY, and times out after 5 seconds.
  • Records each attempt in /app/data before sending the request, so restarts or failures never trigger more than one request per day. If recording fails, the check stays off and logs one warning.
  • Members’ browsers never contact the npm registry; they only ask the self-host server.
  • Beta images compare against newer betas and newer stable releases; stable images compare against stable releases only.
  • Disable the check completely with EXECUTOR_NO_UPDATE_CHECK=1.

Upgrade the Docker container

Never remove your data volume (executor-v2-data) during an upgrade:

# 1. Stop the running container
docker stop executor-v2

# 2. Back up the executor-v2-data volume
docker run --rm \
  -v executor-v2-data:/data:ro \
  -v "$PWD":/backup \
  alpine tar czf /backup/executor-v2-data-backup.tgz -C /data .

# 3. Pull the new image
docker pull ghcr.io/usefulsoftwareco/executor-selfhost:2.0.0-beta.79

# 4. Remove only the stopped container (not the volume)
docker rm executor-v2

# 5. Start the new container with the same volume and environment variables
docker run -d --name executor-v2 --init --restart unless-stopped \
  -p 127.0.0.1:4400:4400 -v executor-v2-data:/app/data \
  ghcr.io/usefulsoftwareco/executor-selfhost:2.0.0-beta.79

You’ll know it worked when docker logs -f executor-v2 prints Executor is ready at ... and curl -sf http://127.0.0.1:4400/health returns {"status":"ok"}.

Move from a local Executor

A self-hosted server starts empty. Data is not copied automatically from a Local Executor or from Executor 1, and both instances keep running independently.

  1. Add your apps again. Install catalog apps from Add app in the self-host dashboard. To deploy custom apps with CLI 2.0.0-beta.79, sign in for app commands with executor apps login --host <your origin>, then pass --host <your origin> to executor apps commands (and sign in separately with executor login --host <your origin> if you also use shell tool commands or executor mcp).
  2. Connect your accounts again. Credentials are encrypted with each server’s own key and do not transfer. Connect each account from its app’s page.
  3. Back up the new server. Snapshot the /app/data volume together with any supplied keys.
  4. Replace each MCP client’s old entry. Remove the local or Executor 1 entry first:
    • Codex: codex mcp remove executor, then add <your origin>/mcp (see Add an MCP client).
    • Claude Code: claude mcp remove executor --scope user, then add <your origin>/mcp.
  5. Start a new client session. Most MCP clients load server definitions only when a session starts.
  6. Verify it works. Ask your agent to search the tools and call one read-only tool from an app you added.

Limits

  • Do not mount /app/motel-data inside /app/data; they must remain separate directories.
  • Copying only the PGlite database without matching encryption.key / EXECUTOR_ENCRYPTION_KEY leaves stored provider credentials unreadable.
  • Moving from Local to Self-host requires reconnecting provider accounts because encryption keys are per-instance.

Was this page helpful?