compact.rst.inc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_compact:
  3. borg compact
  4. ------------
  5. .. code-block:: none
  6. borg [common options] compact [options]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+-------------------------+----------------------------------------------------------------+
  10. | **options** |
  11. +-------------------------------------------------------+-------------------------+----------------------------------------------------------------+
  12. | | ``--threshold PERCENT`` | set minimum threshold for saved space in PERCENT (Default: 10) |
  13. +-------------------------------------------------------+-------------------------+----------------------------------------------------------------+
  14. | .. class:: borg-common-opt-ref |
  15. | |
  16. | :ref:`common_options` |
  17. +-------------------------------------------------------+-------------------------+----------------------------------------------------------------+
  18. .. raw:: html
  19. <script type='text/javascript'>
  20. $(document).ready(function () {
  21. $('.borg-options-table colgroup').remove();
  22. })
  23. </script>
  24. .. only:: latex
  25. options
  26. --threshold PERCENT set minimum threshold for saved space in PERCENT (Default: 10)
  27. :ref:`common_options`
  28. |
  29. Description
  30. ~~~~~~~~~~~
  31. This command frees repository space by compacting segments.
  32. Use this regularly to avoid running out of space - you do not need to use this
  33. after each borg command though. It is especially useful after deleting archives,
  34. because only compaction will really free repository space.
  35. borg compact does not need a key, so it is possible to invoke it from the
  36. client or also from the server.
  37. Depending on the amount of segments that need compaction, it may take a while,
  38. so consider using the ``--progress`` option.
  39. A segment is compacted if the amount of saved space is above the percentage value
  40. given by the ``--threshold`` option. If omitted, a threshold of 10% is used.
  41. When using ``--verbose``, borg will output an estimate of the freed space.
  42. See :ref:`separate_compaction` in Additional Notes for more details.