More efficient backup log #11
Closed
Labels
Milestone
Comments
|
The current log contains:
Thoughts:
|
|
Looking at my log directory filesizes vary from 19 bytes; containing just OK: device=tenneth from a volume with no backup-hooks and just the output "OK: device=tenneth" to 212241 bytes in the worst case with a hell of a lot of diagnostic output from the backup-hook (the next longest is a mere 25406 bytes). I guess the diagnostic output from backup-hooks can be stored in an SQL TEXT field; or they could be dumped into a per-day or per-host log file. |
|
The issue11 branch contains an (experimental) implementation using SQLite. I've not deployed it locally yet (though it does pass its tests). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i.e. more than 10 times as much space is being used as is really needed. The logs could be combined into one file, or just a few files (e.g. one per host or one per volume).
There is an argument that old-style logs should still be written for a while even when a new-style combined format is written and read, so that after a partial restore of a backup host that reverts an upgrade but does not revert the backup log, backups can continue to work properly without replaying the upgrade. However, pruning cannot work in such a downgrade situation - the new-style data will become inconsistent with the old-style data. Therefore no attempt will be made to support downgrades.
The text was updated successfully, but these errors were encountered: