Remix.run Logo
jszymborski a day 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?

simonw a day ago | parent | next [-]

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.

modo_mario 21 hours ago | parent [-]

Thank you for mentioning this. I was planning to do exactly this soon and had no idea.

amanzi a day ago | parent | prev [-]

I learned about the VACUUM INTO command through the following guide on how to backup your sqlite database: https://litestream.io/alternatives/cron/