Comment by jszymborski
4 hours ago
> I love being able to backup by just doing a VACUUM INTO and then copying the resulting single file.
Naively, I would probably just copy the sqlite file. Is that a bad idea?
4 hours ago
> I love being able to backup by just doing a VACUUM INTO and then copying the resulting single file.
Naively, I would probably just copy the sqlite file. Is that a bad idea?
That's fine if SQLite isn't running, but you risk corruption if you copy a file while it is being actively written to.
VACUUM INTO eliminates that risk.
I learned about the VACUUM INTO command through the following guide on how to backup your sqlite database: https://litestream.io/alternatives/cron/