mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
use the usual commandline arguments order for borg prune examples, fixes #560
borg prune <options> <repo>
This commit is contained in:
parent
e68b800d01
commit
2f05e4add9
1 changed files with 4 additions and 4 deletions
|
|
@ -345,18 +345,18 @@ will see what it would do without it actually doing anything.
|
|||
|
||||
# Keep 7 end of day and 4 additional end of week archives.
|
||||
# Do a dry-run without actually deleting anything.
|
||||
$ borg prune /mnt/backup --dry-run --keep-daily=7 --keep-weekly=4
|
||||
$ borg prune --dry-run --keep-daily=7 --keep-weekly=4 /mnt/backup
|
||||
|
||||
# Same as above but only apply to archive names starting with "foo":
|
||||
$ borg prune /mnt/backup --keep-daily=7 --keep-weekly=4 --prefix=foo
|
||||
$ borg prune --keep-daily=7 --keep-weekly=4 --prefix=foo /mnt/backup
|
||||
|
||||
# Keep 7 end of day, 4 additional end of week archives,
|
||||
# and an end of month archive for every month:
|
||||
$ borg prune /mnt/backup --keep-daily=7 --keep-weekly=4 --keep-monthly=-1
|
||||
$ borg prune --keep-daily=7 --keep-weekly=4 --keep-monthly=-1 /mnt/backup
|
||||
|
||||
# Keep all backups in the last 10 days, 4 additional end of week archives,
|
||||
# and an end of month archive for every month:
|
||||
$ borg prune /mnt/backup --keep-within=10d --keep-weekly=4 --keep-monthly=-1
|
||||
$ borg prune --keep-within=10d --keep-weekly=4 --keep-monthly=-1 /mnt/backup
|
||||
|
||||
|
||||
.. include:: usage/info.rst.inc
|
||||
|
|
|
|||
Loading…
Reference in a new issue