1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-26 16:04:06 +00:00
borg/docs/usage/delete.rst
Thomas Waldmann 6888d5dcb2 remove -P (aka --prefix) option, fixes #6806
-a (aka --glob-archives) can be used for same purpose and is more powerful.
2022-07-02 20:52:41 +02:00

19 lines
495 B
ReStructuredText

.. include:: delete.rst.inc
Examples
~~~~~~~~
::
# delete a single backup archive:
$ borg delete Monday
# actually free disk space:
$ borg compact
# delete all archives whose names begin with the machine's hostname followed by "-"
$ borg delete -a '{hostname}-*'
# delete all archives whose names contain "-2012-"
$ borg delete -a '*-2012-*'
# see what would be deleted if delete was run without --dry-run
$ borg delete --list --dry-run -a '*-May-*'