borg/docs/usage/delete.rst

20 lines
500 B
ReStructuredText
Raw Normal View History

2017-06-06 22:06:36 +00:00
.. include:: delete.rst.inc
Examples
~~~~~~~~
::
# delete a single backup archive:
2022-06-23 23:19:19 +00:00
$ borg delete Monday
2018-07-12 18:53:03 +00:00
# actually free disk space:
2022-06-23 23:19:19 +00:00
$ borg compact
2017-06-06 22:06:36 +00:00
# delete all archives whose names begin with the machine's hostname followed by "-"
2022-06-23 23:19:19 +00:00
$ borg delete --prefix '{hostname}-'
# delete all archives whose names contain "-2012-"
2022-06-23 23:19:19 +00:00
$ borg delete -a '*-2012-*'
# see what would be deleted if delete was run without --dry-run
2022-06-23 23:19:19 +00:00
$ borg delete --list --dry-run -a '*-May-*'