|
@@ -12,43 +12,45 @@ borg prune
|
|
|
|
|
|
.. class:: borg-options-table
|
|
.. class:: borg-options-table
|
|
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | **optional arguments** |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``-n``, ``--dry-run`` | do not change repository |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``--force`` | force pruning of corrupted archives, use ``--force --force`` in case ``--force`` does not work. |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``-s``, ``--stats`` | print statistics for the deleted archive |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``--list`` | output verbose list of archives it keeps/prunes |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``--keep-within INTERVAL`` | keep all archives within this time interval |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``--keep-last``, ``--keep-secondly`` | number of secondly archives to keep |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``--keep-minutely`` | number of minutely archives to keep |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``-H``, ``--keep-hourly`` | number of hourly archives to keep |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``-d``, ``--keep-daily`` | number of daily archives to keep |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``-w``, ``--keep-weekly`` | number of weekly archives to keep |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``-m``, ``--keep-monthly`` | number of monthly archives to keep |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``-y``, ``--keep-yearly`` | number of yearly archives to keep |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``--save-space`` | work slower, but using less space |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | .. class:: borg-common-opt-ref |
|
|
|
|
- | |
|
|
|
|
- | :ref:`common_options` |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | **Archive filters** — Archive filters can be applied to repository targets. |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
- | | ``-a GLOB``, ``--glob-archives GLOB`` | only consider archive names matching the glob. sh: rules apply, see "borg help patterns". |
|
|
|
|
- +-----------------------------------------------------------------------------+---------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | **optional arguments** |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``-n``, ``--dry-run`` | do not change repository |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``--force`` | force pruning of corrupted archives, use ``--force --force`` in case ``--force`` does not work. |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``-s``, ``--stats`` | print statistics for the deleted archive |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``--list`` | output verbose list of archives it keeps/prunes |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``--keep-within INTERVAL`` | keep all archives within this time interval |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``--keep-last``, ``--keep-secondly`` | number of secondly archives to keep |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``--keep-minutely`` | number of minutely archives to keep |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``-H``, ``--keep-hourly`` | number of hourly archives to keep |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``-d``, ``--keep-daily`` | number of daily archives to keep |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``-w``, ``--keep-weekly`` | number of weekly archives to keep |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``-m``, ``--keep-monthly`` | number of monthly archives to keep |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``-y``, ``--keep-yearly`` | number of yearly archives to keep |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``--save-space`` | work slower, but using less space |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``-c SECONDS``, ``--checkpoint-interval SECONDS`` | write checkpoint every SECONDS seconds (Default: 1800) |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | .. class:: borg-common-opt-ref |
|
|
|
|
+ | |
|
|
|
|
+ | :ref:`common_options` |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | **Archive filters** — Archive filters can be applied to repository targets. |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
+ | | ``-a GLOB``, ``--glob-archives GLOB`` | only consider archive names matching the glob. sh: rules apply, see "borg help patterns". |
|
|
|
|
+ +-----------------------------------------------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
.. raw:: html
|
|
.. raw:: html
|
|
|
|
|
|
@@ -76,6 +78,7 @@ borg prune
|
|
-m, --keep-monthly number of monthly archives to keep
|
|
-m, --keep-monthly number of monthly archives to keep
|
|
-y, --keep-yearly number of yearly archives to keep
|
|
-y, --keep-yearly number of yearly archives to keep
|
|
--save-space work slower, but using less space
|
|
--save-space work slower, but using less space
|
|
|
|
+ -c SECONDS, --checkpoint-interval SECONDS write checkpoint every SECONDS seconds (Default: 1800)
|
|
|
|
|
|
|
|
|
|
:ref:`common_options`
|
|
:ref:`common_options`
|