Re:A faster way to copy SQLite databases between computers
by rollcat on Thursday May 01, 2025 @08:49AM
(#43857006)
rsync will transmit only the delta between the source and destination.
Re:A faster way to copy SQLite databases between computers
by mixmastamyk on Thursday May 01, 2025 @07:02PM
(#43864320)
Believe there are command-line flags necessary to make it do that though: --inplace --no-whole-file
Re:A faster way to copy SQLite databases between computers
by exsysadmin on Saturday May 03, 2025 @07:22AM
(#43878327)
--no-whole-file is the standard, except for local paths (on the same system, the delta-transfer algorithm would be a waste of work, as it reads src and dst to find the delta with rolling checksums -- over the network it can save lots of time and bandwidth)
--inplace is independent of that: it specifies writing directly to target files (instead of write to temp file and rename to target after completion)
Re:A faster way to copy SQLite databases between computers
by wang_li on Thursday May 01, 2025 @10:23AM
(#43858093)
I've seen a suggestion several times to compress the data before sending. If remote means in the same data center, there's a good chance compressing the data is just slowing you down. Not many machines can gzip/bzip2/7zip at better than the 1 gigabyte per second you can get from 10 Gbps networks.
Just ssh the machine, dump the SQL and load it back into SQLite locally.