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