SQLite's sqlite3_rsync copies databases over SSH with no local copy
In a link blog post dated 26 November 2026, Simon Willison pointed to sqlite3_rsync, an additional SQLite tool for copying databases remotely. It is not new. It was added as "experimental" in SQLite 3.47.0 in October 2024 and enhanced in SQLite 3.50.0 in May 2025. Willison wrote that only on the day of the post did one of its most attractive characteristics become clear.
The problem it addresses is disk space. According to Willison, grabbing a snapshot copy of a SQLite database normally means using either the backup API or VACUUM INTO. Both need enough free disk to create a duplicate of the database, so anyone on a small instance who already uses more than half of the available disk is out of luck.
sqlite3_rsync can copy a snapshot over an SSH connection to another machine without first creating a full local copy. It is also good for synchronizing an existing copy without sending the entire database over the network again, working in a similar way to regular rsync.
A protocol description included in the post explains the mechanism. The replica sends cryptographic hashes of pages, or groups of pages, to the origin. The origin sends back page content that differs, or asks for finer-grained hashes when a hash covering multiple pages does not match. If the two sides start out vastly different, total network traffic can exceed the size of the whole database because of the hash exchange, but the excess is a few percent at most.
In an update, Willison added that it turned out this same use of the tool had already come up in a post of theirs in October 2024, when the tool was first released.
Key facts
- sqlite3_rsync arrived as "experimental" in SQLite 3.47.0 (October 2024) and was enhanced in SQLite 3.50.0 (May 2025).
- It can copy a database snapshot over SSH to another machine without first creating a full local copy.
- The backup API and VACUUM INTO both need enough disk space for a duplicate of the database.
- To sync an existing copy, the replica sends page hashes and the origin returns content that differs.
- When origin and replica differ vastly, traffic can exceed the database size, by a few percent at most.
Why it matters
Disk space can block a simple backup. Willison notes that the backup API and VACUUM INTO both require room for a second copy of the database, which rules them out on a small instance where more than half of the available disk is already used. sqlite3_rsync gets a snapshot onto another machine without that local duplicate. The tool itself dates to October 2024; what the post draws attention to is this particular property.
Who it affects
The clearest case is anyone running a SQLite database on a small instance with limited free disk who needs a snapshot of it elsewhere. It is also relevant to people who keep a second copy of a database on another machine and want to bring it up to date without transferring the whole file again.
How to use it
The post describes two uses: copying a snapshot of a database over an SSH connection to another machine, and synchronizing a copy that already exists, much as regular rsync does. The version history it gives is SQLite 3.47.0 for the experimental debut and 3.50.0 for later enhancements. No command syntax, installation steps or requirements on the remote machine are given.
How solid is it
This is a short link blog note by Simon Willison on simonwillison.net. It states the tool's versions and its ability to skip the local copy, and includes a description of the underlying protocol. No benchmarks, transfer speeds or database sizes are given.
Risks and caveats
Syncing is not always cheaper than the database itself: if origin and replica start out vastly different, hash exchange can push total traffic above the database size, though only by a few percent at most. The tool was labelled "experimental" when it was added, and the post does not say whether it still is. It also does not say what the May 2025 enhancement consisted of.
“sqlite3_rsync can copy a snapshot of your database over an SSH connection to another machine, without first needing to create a full local copy!”
— Simon Willison, simonwillison.net