delete.rst.inc 11 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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] [NAME]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  10. | **positional arguments** |
  11. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  12. | | ``NAME`` | specify the archive name |
  13. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  14. | **options** |
  15. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  16. | | ``-n``, ``--dry-run`` | do not change repository |
  17. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  18. | | ``--list`` | output verbose list of archives |
  19. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  20. | .. class:: borg-common-opt-ref |
  21. | |
  22. | :ref:`common_options` |
  23. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  24. | **Archive filters** — Archive filters can be applied to repository targets. |
  25. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  26. | | ``-a PATTERN``, ``--match-archives PATTERN`` | only consider archives matching all patterns. see "borg help match-archives". |
  27. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  28. | | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp |
  29. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  30. | | ``--first N`` | consider first N archives after other filters were applied |
  31. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  32. | | ``--last N`` | consider last N archives after other filters were applied |
  33. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  34. | | ``--oldest TIMESPAN`` | consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m. |
  35. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  36. | | ``--newest TIMESPAN`` | consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m. |
  37. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  38. | | ``--older TIMESPAN`` | consider archives older than (now - TIMESPAN), e.g. 7d or 12m. |
  39. +-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  40. | | ``--newer TIMESPAN`` | consider archives newer than (now - TIMESPAN), e.g. 7d or 12m. |
  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. NAME
  50. specify the archive name
  51. options
  52. -n, --dry-run do not change repository
  53. --list output verbose list of archives
  54. :ref:`common_options`
  55. |
  56. Archive filters
  57. -a PATTERN, --match-archives PATTERN only consider archives matching all patterns. see "borg help match-archives".
  58. --sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp
  59. --first N consider first N archives after other filters were applied
  60. --last N consider last N archives after other filters were applied
  61. --oldest TIMESPAN consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
  62. --newest TIMESPAN consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m.
  63. --older TIMESPAN consider archives older than (now - TIMESPAN), e.g. 7d or 12m.
  64. --newer TIMESPAN consider archives newer than (now - TIMESPAN), e.g. 7d or 12m.
  65. Description
  66. ~~~~~~~~~~~
  67. This command soft-deletes archives from the repository.
  68. Important:
  69. - The delete command will only mark archives for deletion ("soft-deletion"),
  70. repository disk space is **not** freed until you run ``borg compact``.
  71. - You can use ``borg undelete`` to undelete archives, but only until
  72. you run ``borg compact``.
  73. When in doubt, use ``--dry-run --list`` to see what would be deleted.
  74. You can delete multiple archives by specifying a matching pattern,
  75. using the ``--match-archives PATTERN`` option (for more info on these patterns,
  76. see :ref:`borg_patterns`).