mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 00:07:38 +00:00
8e6c504654
at some places, the docs were not updated yet. for borg 1.x, -a (aka --glob-archives) expected sh: style glob patterns ONLY (but one must not give sh: explicitly). for borg 2, -a (aka --match-archives) defaults to id: style (identical match), so one must give sh: if one wants shell-style globbing.
20 lines
505 B
ReStructuredText
20 lines
505 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 '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-*'
|
|
|