sqlite3_rsync: Database Remote-Copy Tool For SQLite
SQLite's sqlite3_rsync tool allows remote copying of databases without local duplicates, and it matters for users with limited disk space. This tool enhances database management efficiency.
Original reporting · simonwillison.net
Read “sqlite3_rsync: Database Remote-Copy Tool For SQLite” at Simon Willison →How this was written. GDS wrote this article with a language model from Simon Willison’s reporting (model: @cf/meta/llama-3.3-70b-instruct-fp8-fast); it describes that reporting rather than adding to it. The original, linked above, is the full story.
Key points from Simon Willison’s report
- SQLite's sqlite3_rsync tool enables remote copying of databases without local duplicates.
- The tool works over SSH connections and uses cryptographic hashes for efficient synchronization.
- It alleviates disk space concerns for users with limited storage.
SQLite has introduced an additional tool called sqlite3_rsync, which was first added as experimental in SQLite 3.47.0 in October 2024 and later enhanced in SQLite 3.50.0 in May 2025, according to Simon Willison.
Normally, creating a snapshot copy of a SQLite database requires using the backup API or VACUUM INTO, both of which demand sufficient disk space for a duplicate copy, posing a challenge for users with limited storage.
sqlite3_rsync offers a solution by enabling the copy of a database snapshot over an SSH connection to another machine without needing a local copy, thus alleviating disk space concerns.
The tool works similarly to the regular rsync, where the replica sends cryptographic hashes for pages or groups of pages to the origin side, which then sends back differing page content or requests finer-grain hashes if necessary.
The protocol behind sqlite3_rsync allows for efficient synchronization of existing database copies without re-transmitting the entire database over the network, although it may incur some overhead due to hash exchanges.
According to the protocol's design, if the origin and replica databases are vastly different, the total network bandwidth used can slightly exceed the database size, but only by a few percent at most.
Simon Willison reported that he had previously written about this application of sqlite3_rsync back in October 2024 when the tool was first released, highlighting its potential benefits for database management.
Questions and answers
What is sqlite3_rsync?
sqlite3_rsync is a SQLite tool that allows remote copying of databases without creating a local duplicate copy.
How does sqlite3_rsync work?
It works by sending cryptographic hashes for pages or groups of pages over to the origin side, which then sends back differing page content or requests finer-grain hashes.
What are the benefits of using sqlite3_rsync?
The tool alleviates disk space concerns and enables efficient synchronization of existing database copies without re-transmitting the entire database over the network.


