Skip to content

Back up and migrate

Read this if you want to relocate your wiki, back OMem up, or move it to a new machine. The short version: your data is plain files in known places, and OMem can rebuild the rest from them.

LocationWhatBack this up?
~/omem/wiki (data.wiki_path)The curated Markdown pages — your readable memory.Yes — this is the product.
~/.local/share/omem/raw (under data.root)The immutable parsed-source archive (content-addressed).Yes if you can — lets the wiki rebuild without re-parsing.
~/.config/omem/config.yamlYour configuration.Yes — small, and saves re-running setup.
~/.local/share/omem/.state + indexCursors and the search index.No — these rebuild.

The layering is deliberate (P3): delete the index and it rebuilds from the wiki; delete the wiki and it rebuilds from raw/; raw/ is never deleted. So a backup of wiki/ + raw/ + config.yaml is a complete one.

To relocate the wiki — onto a synced folder, into an Obsidian vault, anywhere — use omem wiki move, not a manual mv or a config edit. It relocates the files and re-points the index and any qmd collections:

Terminal window
omem wiki move ~/Documents/MyVault/omem --dry-run # preview
omem wiki move ~/Documents/MyVault/omem # do it

A common setup is to point the vault at a synced location so it’s backed up and available across devices:

Terminal window
omem wiki move ~/Library/CloudStorage/OneDrive-Personal/omem-wiki

Now your readable memory rides your existing cloud backup. (OMem’s ingest still runs locally on the Mac that has the sources.)

  1. Install OMem on the new Mac (install).
  2. Copy over config.yaml, the wiki/ folder, and (if you can) the raw/ archive.
  3. Run omem doctor to check consistency, then omem index rebuild to rebuild the search index from the wiki.
  4. Re-grant macOS permissions (omem setup --grant-tcc) — permissions are per-machine.