borgbackup/docs/usage/delete.rst.inc

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
10 KiB
PHP
Raw Permalink Normal View History

2016-07-05 17:30:08 -04:00
.. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
.. _borg_delete:
borg delete
-----------
.. code-block:: none
2024-09-26 01:57:01 -04:00
borg [common options] delete [options] [NAME]
2017-06-20 09:22:24 -04:00
.. only:: html
2017-06-20 05:49:26 -04:00
2017-06-20 09:22:24 -04:00
.. class:: borg-options-table
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| **positional arguments** |
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| | ``NAME`` | specify the archive name |
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-04-21 15:07:46 -04:00
| **options** |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-12-23 12:00:09 -05:00
| | ``-n``, ``--dry-run`` | do not change the repository |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-12-23 12:00:09 -05:00
| | ``--list`` | output a verbose list of archives |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| .. class:: borg-common-opt-ref |
| |
| :ref:`common_options` |
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| **Archive filters** Archive filters can be applied to repository targets. |
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-12-23 12:00:09 -05:00
| | ``-a PATTERN``, ``--match-archives PATTERN`` | only consider archives matching all patterns. See "borg help match-archives". |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp |
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-12-23 12:00:09 -05:00
| | ``--first N`` | consider the first N archives after other filters are applied |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-12-23 12:00:09 -05:00
| | ``--last N`` | consider the last N archives after other filters are applied |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-12-23 12:00:09 -05:00
| | ``--oldest TIMESPAN`` | consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g., 7d or 12m. |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-12-23 12:00:09 -05:00
| | ``--newest TIMESPAN`` | consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g., 7d or 12m. |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-12-23 12:00:09 -05:00
| | ``--older TIMESPAN`` | consider archives older than (now - TIMESPAN), e.g., 7d or 12m. |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2025-12-23 12:00:09 -05:00
| | ``--newer TIMESPAN`` | consider archives newer than (now - TIMESPAN), e.g., 7d or 12m. |
2024-10-03 06:23:03 -04:00
+-----------------------------------------------------------------------------+----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
2017-06-20 05:49:26 -04:00
2017-06-20 09:22:24 -04:00
.. raw:: html
2017-06-20 09:22:24 -04:00
<script type='text/javascript'>
$(document).ready(function () {
2017-06-20 09:22:24 -04:00
$('.borg-options-table colgroup').remove();
})
</script>
2017-06-20 09:22:24 -04:00
.. only:: latex
2024-09-26 01:57:01 -04:00
NAME
specify the archive name
2017-06-20 09:22:24 -04:00
2025-04-21 15:07:46 -04:00
options
2025-12-23 12:00:09 -05:00
-n, --dry-run do not change the repository
--list output a verbose list of archives
2017-06-20 09:22:24 -04:00
:ref:`common_options`
|
2017-07-23 11:12:01 -04:00
Archive filters
2025-12-23 12:00:09 -05:00
-a PATTERN, --match-archives PATTERN only consider archives matching all patterns. See "borg help match-archives".
2024-10-03 06:23:03 -04:00
--sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp
2025-12-23 12:00:09 -05:00
--first N consider the first N archives after other filters are applied
--last N consider the last N archives after other filters are applied
--oldest TIMESPAN consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g., 7d or 12m.
--newest TIMESPAN consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g., 7d or 12m.
--older TIMESPAN consider archives older than (now - TIMESPAN), e.g., 7d or 12m.
--newer TIMESPAN consider archives newer than (now - TIMESPAN), e.g., 7d or 12m.
2017-06-20 05:49:26 -04:00
2016-10-01 12:23:36 -04:00
Description
~~~~~~~~~~~
2024-11-16 14:14:16 -05:00
This command soft-deletes archives from the repository.
2018-07-12 16:00:19 -04:00
2024-11-16 14:14:16 -05:00
Important:
- The delete command will only mark archives for deletion ("soft-deletion"),
repository disk space is **not** freed until you run ``borg compact``.
- You can use ``borg undelete`` to undelete archives, but only until
you run ``borg compact``.
2018-07-12 16:00:19 -04:00
2021-02-05 19:32:02 -05:00
When in doubt, use ``--dry-run --list`` to see what would be deleted.
2025-12-23 12:00:09 -05:00
You can delete multiple archives by specifying a match pattern using
the ``--match-archives PATTERN`` option (for more information on these
patterns, see :ref:`borg_patterns`).