1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-03 02:05:54 +00:00

docs/data structures: add simple example compaction run

This commit is contained in:
Marian Beermann 2017-05-22 13:11:00 +02:00
parent 691c6adc04
commit f8c63f9a66
3 changed files with 6 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 KiB

Binary file not shown.

View file

@ -176,6 +176,12 @@ a new segment, while superseded entries are omitted. After each segment an inter
commit is written to the new segment. Then, the old segment is deleted
(asserting that the reference count diminished to zero), freeing disk space.
A simplified example (excluding conditional compaction and with simpler
commit logic) showing the principal operation of compaction:
.. figure::
compaction.png
(The actual algorithm is more complex to avoid various consistency issues, refer to
the ``borg.repository`` module for more comments and documentation on these issues.)