sqlite3_rsync: Database Remote-Copy Tool For SQLite
- ID
- 50506
- Status
- summarized
- Published
- 26 Nov 2026, 2:08 PM
- Fetched
- 26 Nov 2026, 3:09 PM
- Provider
- Simon Willison
- Category
- developer-ai
- Original URL
- https://simonwillison.net/2026/Nov/26/sqlite3-rsync/
- Source URL
- https://simonwillison.net/atom/everything/
Summary
- Score
- 7.0
- Created
- 26 Nov 2026, 3:09 PM
- Tags
- Audience
- developersdatabase_learnersvibe_coderssaas_founders
What happened
Simon Willison highlights sqlite3_rsync, an experimental SQLite tool added in SQLite 3.47.0 in October 2024 and enhanced in SQLite 3.50.0 in May 2025, which copies a database snapshot over SSH without first creating a full local duplicate. It works like rsync by exchanging page hashes and sending only differing pages; if origin and replica are very different, bandwidth can exceed the database size by only a few percent. Willison notes he had written about this use case when the tool first shipped in October 2024.
Why it matters
If a SQLite database already uses more than half the available disk, the backup API and VACUUM INTO are impractical because they need space for a full local copy. Use sqlite3_rsync to push snapshots to another machine over SSH, and test the few-percent hash-exchange overhead before relying on it for a replica that is far behind.
Discussion angle
What backup and restore test should a small SQLite deployment run before swapping VACUUM INTO for sqlite3_rsync, especially to measure the few-percent bandwidth overhead when the replica is far behind?