From 71c1ad0f52fdeb45de4508f1210aff4f58f152f2 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 6 Oct 2024 13:52:33 -0700 Subject: [PATCH] Much simpler recipe --- sqlite/compile-sqlite3-rsync.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sqlite/compile-sqlite3-rsync.md b/sqlite/compile-sqlite3-rsync.md index b4fa14186c..5d5d66c886 100644 --- a/sqlite/compile-sqlite3-rsync.md +++ b/sqlite/compile-sqlite3-rsync.md @@ -2,6 +2,18 @@ Today I heard about the [sqlite3-rsync](https://sqlite.org/draft/rsync.html) command, currently available in a branch in the SQLite code repository. It provides a mechanism for efficiently creating or updating a copy of a SQLite database that is running in WAL mode, either locally or via SSH to another server. +**Update:** Thanks to [gary_0 on Hacker News](https://news.ycombinator.com/item?id=41749288#41760082) here's a MUCH simpler recipe: + +```bash +git clone https://github.com/sqlite/sqlite.git +cd sqlite +./configure +make sqlite-rsync +``` +So it looks like the `sqlite-rsync` command is no longer limited to a branch. + +## How I compiled it without using make sqlite-rsync + After some poking around (and some hints from Claude) I found a recipe for compiling and running it that seems to work: ```bash