Y
Hacker News
new
|
ask
|
show
|
jobs
by
ozozozd
298 days ago
Or use SQLite and your backups are literally a copy of a file.
You can abuse git for it if you really want to cut corners.
1 comments
vanviegen
298 days ago
Only if you can freeze your application for that long, in which case your statement is true for all non-broken databases.
link
markusw
297 days ago
You can easily do consistent backup on live databases. There’s a backup command and API.
link
vanviegen
297 days ago
Sure. But then it's not "just a file" copy, like GP said.
link
wild_egg
297 days ago
It only freezes your application if you've misconfigured it.
link
vanviegen
297 days ago
If you want to backup your database using just a file copy, you'd better freeze your database if you value your data. Or use a fancy snapshotting filesystem.
link