delete.rst.inc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_delete:
  3. borg delete
  4. -----------
  5. .. code-block:: none
  6. borg [common options] delete [options]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  10. | **options** |
  11. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  12. | | ``-n``, ``--dry-run`` | do not change repository |
  13. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  14. | | ``--list`` | output verbose list of archives |
  15. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  16. | | ``--consider-checkpoints`` | consider checkpoint archives for deletion (default: not considered). |
  17. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  18. | | ``-s``, ``--stats`` | print statistics for the deleted archive |
  19. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  20. | | ``--force`` | force deletion of corrupted archives, use ``--force --force`` in case ``--force`` does not work. |
  21. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  22. | | ``-c SECONDS``, ``--checkpoint-interval SECONDS`` | write checkpoint every SECONDS seconds (Default: 1800) |
  23. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  24. | .. class:: borg-common-opt-ref |
  25. | |
  26. | :ref:`common_options` |
  27. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  28. | **Archive filters** — Archive filters can be applied to repository targets. |
  29. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  30. | | ``-a PATTERN``, ``--match-archives PATTERN`` | only consider archive names matching the pattern. see "borg help match-archives". |
  31. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  32. | | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp |
  33. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  34. | | ``--first N`` | consider first N archives after other filters were applied |
  35. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  36. | | ``--last N`` | consider last N archives after other filters were applied |
  37. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  38. | | ``--oldest TIMESPAN`` | consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m. |
  39. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  40. | | ``--newest TIMESPAN`` | consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m. |
  41. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  42. | | ``--older TIMESPAN`` | consider archives older than (now - TIMESPAN), e.g. 7d oder 12m. |
  43. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  44. | | ``--newer TIMESPAN`` | consider archives newer than (now - TIMESPAN), e.g. 7d or 12m. |
  45. +-----------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------+
  46. .. raw:: html
  47. <script type='text/javascript'>
  48. $(document).ready(function () {
  49. $('.borg-options-table colgroup').remove();
  50. })
  51. </script>
  52. .. only:: latex
  53. options
  54. -n, --dry-run do not change repository
  55. --list output verbose list of archives
  56. --consider-checkpoints consider checkpoint archives for deletion (default: not considered).
  57. -s, --stats print statistics for the deleted archive
  58. --force force deletion of corrupted archives, use ``--force --force`` in case ``--force`` does not work.
  59. -c SECONDS, --checkpoint-interval SECONDS write checkpoint every SECONDS seconds (Default: 1800)
  60. :ref:`common_options`
  61. |
  62. Archive filters
  63. -a PATTERN, --match-archives PATTERN only consider archive names matching the pattern. see "borg help match-archives".
  64. --sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  65. --first N consider first N archives after other filters were applied
  66. --last N consider last N archives after other filters were applied
  67. --oldest TIMESPAN consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
  68. --newest TIMESPAN consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m.
  69. --older TIMESPAN consider archives older than (now - TIMESPAN), e.g. 7d oder 12m.
  70. --newer TIMESPAN consider archives newer than (now - TIMESPAN), e.g. 7d or 12m.
  71. Description
  72. ~~~~~~~~~~~
  73. This command deletes archives from the repository.
  74. Important: When deleting archives, repository disk space is **not** freed until
  75. you run ``borg compact``.
  76. When in doubt, use ``--dry-run --list`` to see what would be deleted.
  77. When using ``--stats``, you will get some statistics about how much data was
  78. deleted - the "Deleted data" deduplicated size there is most interesting as
  79. that is how much your repository will shrink.
  80. Please note that the "All archives" stats refer to the state after deletion.
  81. You can delete multiple archives by specifying a matching pattern,
  82. using the ``--match-archives PATTERN`` option (for more info on these patterns,
  83. see :ref:`borg_patterns`).
  84. Always first use ``--dry-run --list`` to see what would be deleted.