sqlite3_rsync: Database Remote-Copy Tool For SQLite

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

sqlite3_rsync lets developers snapshot or sync a live SQLite database to a remote machine over SSH without needing free disk space for a full local copy.

Read this as

SQLite is a widely used database program that stores data in a single file. It ships a tool called sqlite3_rsync that can copy that file to another computer over an encrypted remote-login connection called SSH. Unlike older copy methods, it never needs to make a duplicate on the original machine's disk, and it only transmits the parts of the file that changed, like the familiar rsync tool.

Teams running SQLite on small servers can now back up or replicate databases to remote hosts without needing spare disk space equal to the database size, removing a real operational constraint. The tool has shipped since SQLite 3.47.0 in October 2024 and was enhanced in 3.50.0 in May 2025. Sync traffic stays close to full-database size only when replicas differ wildly, with overhead of a few percent.

sqlite3_rsync, bundled since SQLite 3.47.0 (October 2024) and improved in 3.50.0 (May 2025), snapshots a database to a remote host over SSH without a local copy, unlike the backup API or VACUUM INTO. The replica sends cryptographic hashes of pages or page groups; the origin returns differing page content or requests finer-grain hashes when multi-page hashes mismatch. If the replica diverges substantially, hash exchange overhead can push total transfer past full-database size, though the excess is a few percent at most.

Questions this answers

The article above answers these:

  • how does sqlite3_rsync work over SSH
  • how do I back up SQLite without free disk space
  • when was sqlite3_rsync added to SQLite

Read the original

This summary exists to save you time, not to replace the source.

Key terms

sqlite3_rsync SQLite SQLite 3.47.0 SQLite 3.50.0 rsync SSH VACUUM INTO

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading