borgbackup/docs/usage/delete.rst

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

24 lines
635 B
ReStructuredText
Raw Normal View History

2017-06-06 18:06:36 -04:00
.. include:: delete.rst.inc
Examples
~~~~~~~~
::
# Delete all backup archives named "kenny-files":
$ borg delete -a kenny-files
# Actually free disk space:
2022-06-23 19:19:19 -04:00
$ borg compact
2017-06-06 18:06:36 -04:00
# Delete a specific backup archive using its unique archive ID prefix
$ borg delete aid:d34db33f
# Delete all archives whose names begin with the machine's hostname followed by "-"
$ borg delete -a 'sh:{hostname}-*'
# Delete all archives whose names contain "-2012-"
$ borg delete -a 'sh:*-2012-*'
# See what would be deleted if delete was run without --dry-run
$ borg delete --list --dry-run -a 'sh:*-May-*'
2022-07-04 18:38:37 -04:00