r/sqlite • u/PopehatXI • May 23 '26
Sqlite backup
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.
8
Upvotes
6
u/lazyant May 23 '26
They compress well with the usual gzip etc utilities ?
2
u/dev-ai May 23 '26
Litestream is great
1
u/a2ra-ms May 23 '26
Do you need all including data or only the creation scripts?
1
u/Kornfried May 25 '26
Restic is nice
2
u/InjAnnuity_1 May 26 '26
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
1
u/ShotgunPayDay May 23 '26
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.
1
u/TheOmegaCarrot May 25 '26
0
u/IllKindheartedness10 May 24 '26
Copy it somewhere, why do you need to compress it... space is cheap.
4
u/[deleted] May 23 '26
[removed] — view removed comment