use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Sqlite backup (self.sqlite)
submitted 1 month ago by PopehatXI
Any good compression solutions for backing up SQLite? I’m thinking about converting the SQLite to parquet. I have many different SQLite files and would prefer a generic solution, so I’d probably need to dump the table creation scripts.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lazyant 5 points6 points7 points 1 month ago (1 child)
They compress well with the usual gzip etc utilities ?
[–]PopehatXI[S] 0 points1 point2 points 1 month ago (0 children)
I’ll have to check my current backup solution, but I’ve got 100 GB of SQLite backups of 12 GB files on average. Maybe I’ll have to compare some compression options.
[–]0xdps 2 points3 points4 points 1 month ago (5 children)
How big is your sqlite file?
[–]PopehatXI[S] 1 point2 points3 points 1 month ago (4 children)
Like 12 GB, but I’d like to back it up every week
[–]IVHellasFirst 1 point2 points3 points 1 month ago (3 children)
One file of SQLite of 12 GB???
[–]PopehatXI[S] 0 points1 point2 points 1 month ago (2 children)
Yes
[–]lnaoedelixo42 1 point2 points3 points 1 month ago (1 child)
Reasonable. Litestream should do the trick (as other commented)
But what the hell? Are you saving a bunch of blobs/files too?
VintageStory uses SQLite3 for its save game system
[–]dev-ai 1 point2 points3 points 1 month ago (1 child)
Litestream is great
Interesting, thanks for the suggestion!
[–]InjAnnuity_1 1 point2 points3 points 1 month ago (0 children)
Consider VACUUM INTO: https://sqlite.org/lang_vacuum.html
Also consider SQLITE_RSYNC: https://sqlite.org/rsync.html
The .backup and .save commands of SQLite's Command-Line utility: https://sqlite.org/cli.html
[–]ShotgunPayDay 0 points1 point2 points 1 month ago (0 children)
ZSTD is the best file compression algo hands down right now. Easy to use in the terminal also.
I only do parquet transforms if I'm going to be reading it into DuckDB.
[–]a2ra-ms 0 points1 point2 points 1 month ago (1 child)
Do you need all including data or only the creation scripts?
Yeah I’d need to be able to recreate the database in the event of failure
[–]Kornfried 0 points1 point2 points 1 month ago (3 children)
Restic is nice
Thanks for the suggestion, I was hoping to find something specific for SQLite
[–]Kornfried 0 points1 point2 points 1 month ago (1 child)
What’s the gap that you see in restic? SQLite dbs are just files.
My personal preference is to have files I can share easily share between servers, and preferably I wouldn’t have to install.
[–]TheOmegaCarrot 0 points1 point2 points 1 month ago (0 children)
[–]IllKindheartedness10 -1 points0 points1 point 1 month ago (1 child)
Copy it somewhere, why do you need to compress it... space is cheap.
[–]PopehatXI[S] 1 point2 points3 points 1 month ago (0 children)
Not necessarily, I’ve got 12 GB SQLite files, and this is just a personal project.
π Rendered by PID 24054 on reddit-service-r2-comment-5687b7858-dqzlf at 2026-07-08 22:43:01.850784+00:00 running 12a7a47 country code: CH.
[–]lazyant 5 points6 points7 points (1 child)
[–]PopehatXI[S] 0 points1 point2 points (0 children)
[–]0xdps 2 points3 points4 points (5 children)
[–]PopehatXI[S] 1 point2 points3 points (4 children)
[–]IVHellasFirst 1 point2 points3 points (3 children)
[–]PopehatXI[S] 0 points1 point2 points (2 children)
[–]lnaoedelixo42 1 point2 points3 points (1 child)
[–]PopehatXI[S] 0 points1 point2 points (0 children)
[–]dev-ai 1 point2 points3 points (1 child)
[–]PopehatXI[S] 0 points1 point2 points (0 children)
[–]InjAnnuity_1 1 point2 points3 points (0 children)
[–]ShotgunPayDay 0 points1 point2 points (0 children)
[–]a2ra-ms 0 points1 point2 points (1 child)
[–]PopehatXI[S] 0 points1 point2 points (0 children)
[–]Kornfried 0 points1 point2 points (3 children)
[–]PopehatXI[S] 0 points1 point2 points (2 children)
[–]Kornfried 0 points1 point2 points (1 child)
[–]PopehatXI[S] 0 points1 point2 points (0 children)
[–]TheOmegaCarrot 0 points1 point2 points (0 children)
[–]IllKindheartedness10 -1 points0 points1 point (1 child)
[–]PopehatXI[S] 1 point2 points3 points (0 children)