|
|
|
|
|
by drtournier
1869 days ago
|
|
Solution works really well to databases which will not be updated frequently, like a standalone site. Although one should be aware of one very important git behavior - git does not diff binary files (like SQLite dbs). That means 2 things: 1. Each db update will generate a new file in git, maintaining the whole old file in history, instead of the diff in bytes. This will accumulate a lot of clutter in the repo 2. As git does not diff binaries, there is a very small risk of corruption (especially if you work in multiple OSs, because of CRLF) Ref - https://robinwinslow.uk/dont-ever-commit-binary-files-to-git |
|
Note that the diffs that git shows you are completely unrelated to the deltas it uses to compress it's database - which are always "binary deltas" and not line-based diffs.
Also I'm not sure why you mean that db corruption possibility has something to do with whether or not it stores diffs?