2017-06-06 18:06:36 -04:00
|
|
|
.. include:: delete.rst.inc
|
|
|
|
|
|
|
|
|
|
Examples
|
|
|
|
|
~~~~~~~~
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# delete a single backup archive:
|
2023-08-26 08:51:27 -04:00
|
|
|
$ borg delete -a Monday
|
2018-07-12 14:53:03 -04:00
|
|
|
# actually free disk space:
|
2022-06-23 19:19:19 -04:00
|
|
|
$ borg compact
|
2017-06-06 18:06:36 -04:00
|
|
|
|
2018-05-26 11:43:43 -04:00
|
|
|
# delete all archives whose names begin with the machine's hostname followed by "-"
|
2023-05-15 18:50:50 -04:00
|
|
|
$ borg delete -a 'sh:{hostname}-*'
|
2018-05-26 11:43:43 -04:00
|
|
|
|
|
|
|
|
# delete all archives whose names contain "-2012-"
|
2023-05-15 18:50:50 -04:00
|
|
|
$ borg delete -a 'sh:*-2012-*'
|
2018-05-26 11:43:43 -04:00
|
|
|
|
|
|
|
|
# see what would be deleted if delete was run without --dry-run
|
2023-05-15 18:50:50 -04:00
|
|
|
$ borg delete --list --dry-run -a 'sh:*-May-*'
|
2022-07-04 18:38:37 -04:00
|
|
|
|