Memory Layer
Operations

Backups and restore

What to back up

  • PostgreSQL database.
  • Global configuration.
  • Repo-local .mem/ project config.
  • .agents/ integration files if they are part of the project workflow.

Basic database backup shape

pg_dump "$DATABASE_URL" > memory-layer-backup.sql
psql "$DATABASE_URL" < memory-layer-backup.sql

For production-grade backups, prefer custom-format dumps, checksums, restore tests, and a retention policy.

Do not commit

Do not commit secrets, API keys, local database URLs, or runtime state.

Verify

Run a restore test into a disposable database and then run memory doctor against it.

Next

Read Security and privacy.

On this page