Merge pull request #2737 from rugk/docs-pruneex

Include prune example in doc
This commit is contained in:
enkore 2017-06-23 19:18:07 +02:00 committed by GitHub
commit 4920ca3b01

View file

@ -14,8 +14,6 @@ prefix "foo" if you do not also want to match "foobar".
It is strongly recommended to always run ``prune -v --list --dry-run ...``
first so you will see what it would do without it actually doing anything.
There is also a visualized prune example in ``docs/misc/prune-example.txt``.
::
# Keep 7 end of day and 4 additional end of week archives.
@ -33,3 +31,9 @@ There is also a visualized prune example in ``docs/misc/prune-example.txt``.
# 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 -v --list --keep-within=10d --keep-weekly=4 --keep-monthly=-1 /path/to/repo
There is also a visualized prune example in ``docs/misc/prune-example.txt``:
.. highlight:: none
.. include:: ../misc/prune-example.txt
:literal: