rcompress.rst.inc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_rcompress:
  3. borg rcompress
  4. --------------
  5. .. code-block:: none
  6. borg [common options] rcompress [options]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+---------------------------------------------------+--------------------------------------------------------------------------------------------------+
  10. | **options** |
  11. +-------------------------------------------------------+---------------------------------------------------+--------------------------------------------------------------------------------------------------+
  12. | | ``-C COMPRESSION``, ``--compression COMPRESSION`` | select compression algorithm, see the output of the "borg help compression" command for details. |
  13. +-------------------------------------------------------+---------------------------------------------------+--------------------------------------------------------------------------------------------------+
  14. | | ``-s``, ``--stats`` | print statistics |
  15. +-------------------------------------------------------+---------------------------------------------------+--------------------------------------------------------------------------------------------------+
  16. | | ``-c SECONDS``, ``--checkpoint-interval SECONDS`` | write checkpoint every SECONDS seconds (Default: 1800) |
  17. +-------------------------------------------------------+---------------------------------------------------+--------------------------------------------------------------------------------------------------+
  18. | .. class:: borg-common-opt-ref |
  19. | |
  20. | :ref:`common_options` |
  21. +-------------------------------------------------------+---------------------------------------------------+--------------------------------------------------------------------------------------------------+
  22. .. raw:: html
  23. <script type='text/javascript'>
  24. $(document).ready(function () {
  25. $('.borg-options-table colgroup').remove();
  26. })
  27. </script>
  28. .. only:: latex
  29. options
  30. -C COMPRESSION, --compression COMPRESSION select compression algorithm, see the output of the "borg help compression" command for details.
  31. -s, --stats print statistics
  32. -c SECONDS, --checkpoint-interval SECONDS write checkpoint every SECONDS seconds (Default: 1800)
  33. :ref:`common_options`
  34. |
  35. Description
  36. ~~~~~~~~~~~
  37. Repository (re-)compression (and/or re-obfuscation).
  38. Reads all chunks in the repository (in on-disk order, this is important for
  39. compaction) and recompresses them if they are not already using the compression
  40. type/level and obfuscation level given via ``--compression``.
  41. If the outcome of the chunk processing indicates a change in compression
  42. type/level or obfuscation level, the processed chunk is written to the repository.
  43. Please note that the outcome might not always be the desired compression
  44. type/level - if no compression gives a shorter output, that might be chosen.
  45. Every ``--checkpoint-interval``, progress is committed to the repository and
  46. the repository is compacted (this is to keep temporary repo space usage in bounds).
  47. A lower checkpoint interval means lower temporary repo space usage, but also
  48. slower progress due to higher overhead (and vice versa).
  49. Please note that this command can not work in low (or zero) free disk space
  50. conditions.
  51. If the ``borg rcompress`` process receives a SIGINT signal (Ctrl-C), the repo
  52. will be committed and compacted and borg will terminate cleanly afterwards.
  53. Both ``--progress`` and ``--stats`` are recommended when ``borg rcompress``
  54. is used interactively.
  55. You do **not** need to run ``borg compact`` after ``borg rcompress``.