Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

docs(docker): correct persistent-data backup instructions

zydo60499f086712
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6609cfa4..38abbd9d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,10 @@ version in [`docs/changelog/`](docs/changelog/):
## [Unreleased]
+### Fixed
+
+- Corrected Docker backup instructions to use an online server snapshot or stop the container before copying its data.
+
## [3.2.0] - 2026-10-21
### Added
diff --git a/docker/docker-compose.prod.yml.example b/docker/docker-compose.prod.yml.example
index acfe21d5..b139637c 100644
--- a/docker/docker-compose.prod.yml.example
+++ b/docker/docker-compose.prod.yml.example
@@ -8,8 +8,8 @@
# - References an image from a registry instead of building inline.
# - Binds to 0.0.0.0 so the LAN can reach the MCP endpoint.
# - Reads secrets from .env.production rather than inlining them.
-# - Volume mounts a host path (under /var/opt/docker/...) so backups
-# can rsync the wiki + db without going through Docker volume APIs.
+# - Volume mounts a host path (under /var/opt/docker/...) for persistent data.
+# Use `ai-memory backup` online, or stop the container before copying it.
name: ai-memory
@@ -31,8 +31,8 @@ services:
# "127.0.0.1:49374:49374".
- "0.0.0.0:49374:49374"
volumes:
- # Data lives on the host. Back up with: rsync, btrfs snapshots,
- # restic — anything that can read this directory.
+ # Data lives on the host. Use `ai-memory backup` online; stop the
+ # container before copying this directory with rsync or restic.
- /var/opt/docker/utils/ai-memory/data:/data
env_file:
- .env.production
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 3ba4fa0c..e79a7168 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -4,9 +4,9 @@
# docker compose up -d
# Attach Claude Code (or any MCP HTTP client) at
# http://localhost:49374/mcp
-# State persists in the `ai-memory-data` volume; move it between hosts
-# by stopping the container, `docker volume export` (or rsync the
-# mountpoint), and importing on the target.
+# State persists in the `ai-memory-data` volume. Use `ai-memory backup`
+# for an online snapshot, or stop the container before copying the volume.
+# See docs/backup.md for moving a backup to another host.
services:
ai-memory: