aibrief
More

Practical guidance

Simon Willison highlights sqlite3_rsync for efficient database backups

What it's for
To create a remote snapshot copy of a SQLite database or synchronize an existing copy without requiring local disk space for a full duplicate.
What you do
The tool uses an SSH connection where the replica sends cryptographic hashes of database pages to the origin, which then sends back only the differing page content.
What you get
It enables backups on small instances where local disk space is insufficient for a standard copy, and reduces network bandwidth by transmitting only changed data.
Limits
If the origin and replica are vastly different, the total network bandwidth can exceed the size of the entire database due to hash exchange overhead, though this excess is reported to be a few percent at most.

Source

Observed ; updated .