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.
What OMem stores, and where
Section titled “What OMem stores, and where”| Location | What | Back 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.yaml | Your configuration. | Yes — small, and saves re-running setup. |
~/.local/share/omem/.state + index | Cursors 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.
Move the vault
Section titled “Move the vault”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:
omem wiki move ~/Documents/MyVault/omem --dry-run # previewomem wiki move ~/Documents/MyVault/omem # do itPut the wiki on a synced folder
Section titled “Put the wiki on a synced folder”A common setup is to point the vault at a synced location so it’s backed up and available across devices:
omem wiki move ~/Library/CloudStorage/OneDrive-Personal/omem-wikiNow your readable memory rides your existing cloud backup. (OMem’s ingest still runs locally on the Mac that has the sources.)
Move to a new machine
Section titled “Move to a new machine”- Install OMem on the new Mac (install).
- Copy over
config.yaml, thewiki/folder, and (if you can) theraw/archive. - Run
omem doctorto check consistency, thenomem index rebuildto rebuild the search index from the wiki. - Re-grant macOS permissions (
omem setup --grant-tcc) — permissions are per-machine.
What’s next
Section titled “What’s next”- Edit the wiki by hand — the vault is yours to read and edit.
- Configuration schema → data — the path fields.