Skip to the content.

Backups

← Back to README

[!IMPORTANT] Treat your vault the way you’d treat a database that an automated process can write to: assume something will eventually go wrong, and make sure you can roll back.

The default deny list blocks rm and other directly-destructive commands, but the agent can still overwrite, mangle, or mv notes into .trash/. A misunderstood instruction, a bad merge, or a model slip can still damage or lose work. Obsidian Sync version history helps for individual files, but it has limits and shouldn’t be your only safety net.

Recommended: turn the vault into a git repo.

cd vault
git init
git add .
git commit -m "baseline"

Then either:

Other options:

Before pointing the agent at an existing vault you care about, take a manual full-vault backup (tar czf vault-backup-$(date +%F).tar.gz vault/) and store it somewhere off-server. Test recovery at least once.

Concurrent writes

Both takopi and obsidian-headless mount the same /vault read-write. There’s no file-level locking between them: in theory, Obsidian Sync can write a file in the exact moment the agent is reading or editing it, and one of the writes will lose. In practice this is rare for a personal vault (Sync writes are quick, agent edits are quick, the window is small), but it’s a real edge case — another reason to keep the backups above.