>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.
You could do a filesystem snapshot and copy from that, but neither a cp or rsync is atomic.
And then there is also https://www.sqlite.org/rsync.html