Backups and version history

~3 min read

Backups and version history

Two independent safety nets, both configured in Settings → Sync & Backup: snapshot backups (whole-vault .zip archives on a schedule) and version history (a Git record of every save, browsable per note). Use snapshots for disaster recovery and history for “what did this note say last Tuesday?”.

Snapshot backups

Restoring is non-destructive by design: Restore from a Backup… asks for the .zip and then a new, empty folder — it will not overwrite your current vault, ever. Open the restored folder to check it, then copy back what you need. The same engine is scriptable as [[CLI cookbook/14 lettuce backup and restore|lettuce backup / lettuce restore]].

Version history (Git)

Turn on Keep version history (Git) and Lettuce records a commit about 5 seconds after every save, into a repository kept outside the vault (so iCloud can’t corrupt it). Requires Apple’s command-line tools (xcode-select --install) if git isn’t present. No Git knowledge needed — but since it’s a real repo, everything is inspectable if you do know Git.

Which do I want?

Both. Snapshots survive a dead disk and restore in one step; history answers fine-grained “undo beyond undo” questions per note. They’re independent — lettuce backup --git records both in the same pass.