2021-08-02 08:12:55 +00:00
|
|
|
Enhancement: Add `--keep-within-hourly` option to restic forget
|
2021-07-24 12:29:16 +00:00
|
|
|
|
2021-08-02 08:12:55 +00:00
|
|
|
Restic forget allowed users to specify keeping a given number of
|
2021-07-24 12:29:16 +00:00
|
|
|
hourly backups, or to keep all backups within a given interval,
|
|
|
|
but not both, that is to specify keeping hourly backups within
|
|
|
|
a given interval.
|
|
|
|
|
2021-08-02 08:12:55 +00:00
|
|
|
The `--keep-within-hourly` option offers this functionality and
|
|
|
|
similar options for daily/weekly/monthly/yearly are also
|
|
|
|
implemented. The new flags are:
|
2021-07-24 12:29:16 +00:00
|
|
|
|
2021-08-02 08:12:55 +00:00
|
|
|
--keep-within-hourly <1y2m3d4h>
|
|
|
|
--keep-within-daily <1y2m3d4h>
|
|
|
|
--keep-within-weekly <1y2m3d4h>
|
|
|
|
--keep-within-monthly <1y2m3d4h>
|
|
|
|
--keep-within-yearly <1y2m3d4h>
|
2021-07-24 12:29:16 +00:00
|
|
|
|
|
|
|
https://github.com/restic/restic/issues/3414
|
|
|
|
https://github.com/restic/restic/pull/3416
|
|
|
|
https://forum.restic.net/t/forget-policy/4014/11
|