diff --git a/content/docs/deploy/docker-compose.mdx b/content/docs/deploy/docker-compose.mdx index 61c12d94..d6de7366 100644 --- a/content/docs/deploy/docker-compose.mdx +++ b/content/docs/deploy/docker-compose.mdx @@ -50,7 +50,7 @@ docker compose up -d - keep your data directory on persistent storage - place Memos behind a reverse proxy for HTTPS - leave `MEMOS_INSTANCE_URL` empty for private mode, or set it to the canonical public URL to enable anonymous public access -- back up both the database and any local assets if you do not use database-backed attachment storage +- back up both the database and any local assets if you do not use database-backed attachment storage - see [Backup & Restore](/docs/operations/backup-restore) for how; with SQLite, copying `memos_prod.db` on its own while Memos is running misses everything still in its `-wal` file ## When to add more services diff --git a/content/docs/deploy/docker.mdx b/content/docs/deploy/docker.mdx index f9c5a0ff..e20cf8c2 100644 --- a/content/docs/deploy/docker.mdx +++ b/content/docs/deploy/docker.mdx @@ -163,4 +163,4 @@ docker run -d \ neosmemo/memos:stable ``` -Because data is stored in the mounted volume, replacing the container is usually safe as long as you keep the same data directory and have backups. +Because data is stored in the mounted volume, replacing the container is usually safe as long as you keep the same data directory and have backups. See [Backup & Restore](/docs/operations/backup-restore) for what to back up and how. diff --git a/content/docs/operations/backup-restore.mdx b/content/docs/operations/backup-restore.mdx index af07bd57..ef18b96f 100644 --- a/content/docs/operations/backup-restore.mdx +++ b/content/docs/operations/backup-restore.mdx @@ -17,7 +17,7 @@ The location is controlled by `MEMOS_DATA`. Override it at runtime or use the de ## What to back up -- the database itself +- the database itself - with SQLite, `memos_prod.db` together with its `-wal` and `-shm` files, or a copy made with `.backup` as below; on a running instance the newest rows are in the `-wal` until SQLite checkpoints them - local attachment storage when attachments are not stored in the database - deployment configuration such as environment variables, compose files, and proxy config