1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-22 07:19:02 +00:00

update prune documentation for new --keep-within intervals

This commit is contained in:
Ken Kundert 2025-01-10 11:12:20 -08:00
parent b9498ca571
commit 45b8e629ac

View file

@ -144,10 +144,11 @@ from different machines) in one shared repository, use one prune call per
series.
The ``--keep-within`` option takes an argument of the form "<int><char>",
where char is "H", "d", "w", "m", "y". For example, ``--keep-within 2d`` means
where char is "y", "m", "w", "d", "H", "M", or "S" and represents years, months,
weeks, days, hours, minutes or seconds. For example, ``--keep-within 2d`` means
to keep all archives that were created within the past 48 hours.
"1m" is taken to mean "31d". The archives kept with this option do not
count towards the totals specified by any other options.
"1m" is taken to mean "31d" and "1y" represents "365d". The archives kept with
this option do not count towards the totals specified by any other options.
A good procedure is to thin out more and more the older your backups get.
As an example, ``--keep-daily 7`` means to keep the latest backup on each day,