delete.rst.inc 8.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. | .. class:: borg-common-opt-ref |
  17. | |
  18. | :ref:`common_options` |
  19. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  20. | **Archive filters** — Archive filters can be applied to repository targets. |
  21. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  22. | | ``-a PATTERN``, ``--match-archives PATTERN`` | only consider archive names matching the pattern. see "borg help match-archives". |
  23. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  24. | | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, archive, name, id; default is: timestamp |
  25. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  26. | | ``--first N`` | consider first N archives after other filters were applied |
  27. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  28. | | ``--last N`` | consider last N archives after other filters were applied |
  29. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  30. | | ``--oldest TIMESPAN`` | consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m. |
  31. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  32. | | ``--newest TIMESPAN`` | consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m. |
  33. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  34. | | ``--older TIMESPAN`` | consider archives older than (now - TIMESPAN), e.g. 7d or 12m. |
  35. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  36. | | ``--newer TIMESPAN`` | consider archives newer than (now - TIMESPAN), e.g. 7d or 12m. |
  37. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------+
  38. .. raw:: html
  39. <script type='text/javascript'>
  40. $(document).ready(function () {
  41. $('.borg-options-table colgroup').remove();
  42. })
  43. </script>
  44. .. only:: latex
  45. optional arguments
  46. -n, --dry-run do not change repository
  47. --list output verbose list of archives
  48. :ref:`common_options`
  49. |
  50. Archive filters
  51. -a PATTERN, --match-archives PATTERN only consider archive names matching the pattern. see "borg help match-archives".
  52. --sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, archive, name, id; default is: timestamp
  53. --first N consider first N archives after other filters were applied
  54. --last N consider last N archives after other filters were applied
  55. --oldest TIMESPAN consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
  56. --newest TIMESPAN consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m.
  57. --older TIMESPAN consider archives older than (now - TIMESPAN), e.g. 7d or 12m.
  58. --newer TIMESPAN consider archives newer than (now - TIMESPAN), e.g. 7d or 12m.
  59. Description
  60. ~~~~~~~~~~~
  61. This command deletes archives from the repository.
  62. Important: When deleting archives, repository disk space is **not** freed until
  63. you run ``borg compact``.
  64. When in doubt, use ``--dry-run --list`` to see what would be deleted.
  65. You can delete multiple archives by specifying a matching pattern,
  66. using the ``--match-archives PATTERN`` option (for more info on these patterns,
  67. see :ref:`borg_patterns`).