sqlite3_rsync: Database Remote-Copy Tool For SQLite
sqlite3_rsync: Database Remote-Copy Tool For
sqlite3_rsync: Database Remote-Copy Tool For SQLite
Normally, if you want to grab a snapshot copy of a SQLite database, you need to use either the backup API or VACUUM INTO. In both cases you need enough disk space to create a duplicate copy of your database, so if you're on a small instance and you already use more than half of the available disk you are plain out of luck.
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!
It's also good for synchronizing an existing copy of a database without re-transmitting the entire thing over the network. It works in a similar way to regular rsync:
The core idea behind the protocol is that the replica sends cryptographic hashes for pages or groups of pages over to the origin side. The origin sends back page content that differs, or requests finer-grain hashes if a multi-page hash does not match. If the origin and replica start out being vastly different, the total network bandwidth can exceed the size of the entire database, due to the overhead of exchanging hashes, but the excess bandwidth is not great - a few percent at most.
Update: Hah! Turns out I wrote about this application of sqlite_rsync back in October 2024 when the tool was first released.
// RELATED
404 MediaGrand Thanksgiving Autumn
What you can learn about a person from how they share GTA
TechmemeThe Dutch government says it will resist the US' planned Match Act, which aims to restrict ASML's sales to China, calling the proposal a threat to the company (Bloomberg)
Bloomberg : The Dutch government says it will resist the US' planned Match Act, which aims to restrict ASML's sales to China, calling the proposal a threat to the company — The Dutch government said it will resist…
TechmemeX rolls out its first parental controls for users aged 13 to 17, defaulting teens to protected mode, restricting sensitive media, and disabling targeted ads (Steve Dent/Engadget)
Steve Dent / Engadget : X rolls out its first parental controls for users aged 13 to 17, defaulting teens to protected mode, restricting sensitive media, and disabling targeted ads — Any responsible adult should…
404 MediaPass the Controller: How Single Console Households Split 'GTA VI'
Grand Theft Auto VI is 2026’s breakout entertainment event. By the numbers, it made roughly $3.79 billion in revenue at launch, outpacing the lifetime earnings for megahit films like Avatar , The Odyssey , and Avengers:…
TechmemeASML CEO Christophe Fouquet argues against cutting China off, warning that aggressive export controls will drive Beijing to accelerate domestic development (Reed Albergotti/Semafor)
Reed Albergotti / Semafor : ASML CEO Christophe Fouquet argues against cutting China off, warning that aggressive export controls will drive Beijing to accelerate domestic development — Export controls on chips…
TechmemeElon Musk says he and SpaceX plan to give every child in the US two SpaceX shares via Trump Accounts, doubling his pledge; the donation is worth ~$18.4B (Peter Vercoe/Bloomberg)
Peter Vercoe / Bloomberg : Elon Musk says he and SpaceX plan to give every child in the US two SpaceX shares via Trump Accounts, doubling his pledge; the donation is worth ~$18.4B — Elon Musk and SpaceX will give…