delete.rst 1.0 KB

123456789101112131415161718192021222324252627
  1. .. include:: delete.rst.inc
  2. Examples
  3. ~~~~~~~~
  4. ::
  5. # delete a single backup archive:
  6. $ borg delete /path/to/repo::Monday
  7. # actually free disk space:
  8. $ borg compact /path/to/repo
  9. # delete all archives whose names begin with the machine's hostname followed by "-"
  10. $ borg delete --glob-archives '{hostname}-*' /path/to/repo
  11. # delete all archives whose names contain "-2012-"
  12. $ borg delete --glob-archives '*-2012-*' /path/to/repo
  13. # see what would be deleted if delete was run without --dry-run
  14. $ borg delete --list --dry-run -a '*-May-*' /path/to/repo
  15. # delete the whole repository and the related local cache:
  16. $ borg delete /path/to/repo
  17. You requested to completely DELETE the repository *including* all archives it contains:
  18. repo Mon, 2016-02-15 19:26:54
  19. root-2016-02-15 Mon, 2016-02-15 19:36:29
  20. newname Mon, 2016-02-15 19:50:19
  21. Type 'YES' if you understand this and want to continue: YES