.. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit! .. _borg_compact: borg compact ------------ .. code-block:: none borg [common options] compact [options] .. only:: html .. class:: borg-options-table +-------------------------------------------------------+ | .. class:: borg-common-opt-ref | | | | :ref:`common_options` | +-------------------------------------------------------+ .. raw:: html .. only:: latex :ref:`common_options` | Description ~~~~~~~~~~~ Free repository space by deleting unused chunks. borg compact analyzes all existing archives to find out which chunks are actually used. There might be unused chunks resulting from borg delete or prune, which can be removed to free space in the repository. Differently than borg 1.x, borg2's compact needs the borg key if the repo is encrypted.