MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1fdntj3/sqlite_is_not_a_toy_database/lmixe69
r/programming • u/StellarNavigator • Sep 10 '24
309 comments sorted by
View all comments
Show parent comments
26
backup can be as simple as cp
not if you have separate WAL file. Which you should do.
7 u/[deleted] Sep 11 '24 cp works on multiple files though? :P 25 u/Romeo3t Sep 11 '24 sqlite cli also has a backup command thats dead easy to use. 4 u/[deleted] Sep 11 '24 it doesn't atomically open both sources at the same time 3 u/bluehands Sep 11 '24 I mean, op was talking about 100k records over 10 years, talking about a max of a couple dozen records on any given day. Should be super easy to get around that limitation. 2 u/International_Cell_3 Sep 11 '24 Not atomically
7
cp works on multiple files though? :P
25 u/Romeo3t Sep 11 '24 sqlite cli also has a backup command thats dead easy to use. 4 u/[deleted] Sep 11 '24 it doesn't atomically open both sources at the same time 3 u/bluehands Sep 11 '24 I mean, op was talking about 100k records over 10 years, talking about a max of a couple dozen records on any given day. Should be super easy to get around that limitation. 2 u/International_Cell_3 Sep 11 '24 Not atomically
25
sqlite cli also has a backup command thats dead easy to use.
4
it doesn't atomically open both sources at the same time
3 u/bluehands Sep 11 '24 I mean, op was talking about 100k records over 10 years, talking about a max of a couple dozen records on any given day. Should be super easy to get around that limitation.
3
I mean, op was talking about 100k records over 10 years, talking about a max of a couple dozen records on any given day. Should be super easy to get around that limitation.
2
Not atomically
26
u/[deleted] Sep 11 '24
not if you have separate WAL file. Which you should do.