3 ms·
>I did wonder about data integrity though, what if the file is edited while it's being copied over? But there's probably safeguards in place. You could do a fi
by MPSimmons 1y ago
>I did wonder about data integrity though, what if the file is edited while it's being copied over? But there's probably safeguards in place.
You could do a filesystem snapshot and copy from that, but neither a cp or rsync is atomic.
- formerly_proven 1y agosqlite3 has a backup API for this, which you can invoke using the .backup command in the sqlite3 CLI. And then there is also https://www.sqlite.org/rsync.html https://www.sqlite.org/rsync.html