delete.rst.inc 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. | **optional arguments** |
  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. | | ``--cache-only`` | delete only the local cache for the given repository |
  21. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  22. | | ``--force`` | force deletion of corrupted archives, use ``--force --force`` in case ``--force`` does not work. |
  23. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  24. | | ``--keep-security-info`` | keep the local security info when deleting a repository |
  25. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  26. | | ``--save-space`` | work slower, but using less space |
  27. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  28. | .. class:: borg-common-opt-ref |
  29. | |
  30. | :ref:`common_options` |
  31. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  32. | **Archive filters** — Archive filters can be applied to repository targets. |
  33. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  34. | | ``-a GLOB``, ``--glob-archives GLOB`` | only consider archive names matching the glob. sh: rules apply, see "borg help patterns". |
  35. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  36. | | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp |
  37. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  38. | | ``--first N`` | consider first N archives after other filters were applied |
  39. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  40. | | ``--last N`` | consider last N archives after other filters were applied |
  41. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------+
  42. .. raw:: html
  43. <script type='text/javascript'>
  44. $(document).ready(function () {
  45. $('.borg-options-table colgroup').remove();
  46. })
  47. </script>
  48. .. only:: latex
  49. optional arguments
  50. -n, --dry-run do not change repository
  51. --list output verbose list of archives
  52. --consider-checkpoints consider checkpoint archives for deletion (default: not considered).
  53. -s, --stats print statistics for the deleted archive
  54. --cache-only delete only the local cache for the given repository
  55. --force force deletion of corrupted archives, use ``--force --force`` in case ``--force`` does not work.
  56. --keep-security-info keep the local security info when deleting a repository
  57. --save-space work slower, but using less space
  58. :ref:`common_options`
  59. |
  60. Archive filters
  61. -a GLOB, --glob-archives GLOB only consider archive names matching the glob. sh: rules apply, see "borg help patterns".
  62. --sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  63. --first N consider first N archives after other filters were applied
  64. --last N consider last N archives after other filters were applied
  65. Description
  66. ~~~~~~~~~~~
  67. This command deletes archives from the repository.
  68. Important: When deleting archives, repository disk space is **not** freed until
  69. you run ``borg compact``.
  70. When in doubt, use ``--dry-run --list`` to see what would be deleted.
  71. When using ``--stats``, you will get some statistics about how much data was
  72. deleted - the "Deleted data" deduplicated size there is most interesting as
  73. that is how much your repository will shrink.
  74. Please note that the "All archives" stats refer to the state after deletion.
  75. You can delete multiple archives by specifying a matching shell pattern,
  76. using the ``--glob-archives GLOB`` option (for more info on these patterns,
  77. see :ref:`borg_patterns`).
  78. Always first use ``--dry-run --list`` to see what would be deleted.