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