zrepl/pruning
Denis Shaposhnikov ebc46cf1c0
Fix last_n keep rule (#691) (#750)
From https://github.com/zrepl/zrepl/issues/691

The last_n prune rule keeps everything, regardless of if it matches the
regex or not, if there are less than count snapshot. The expectation
would be to never keep non-regex snapshots, regardless of number.
2023-12-22 13:38:14 +01:00
..
retentiongrid pruning: cleanup retention grid impl + tests + correct docs 2020-09-02 22:45:44 +02:00
keep_grid.go pruning: cleanup retention grid impl + tests + correct docs 2020-09-02 22:45:44 +02:00
keep_helpers_test.go format source tree using goimports 2019-03-22 19:41:12 +01:00
keep_helpers.go [#292] pruning: grid: add all snapshots that do not match the regex to the rule's destroy list 2020-09-02 22:45:44 +02:00
keep_last_n_test.go Fix last_n keep rule (#691) (#750) 2023-12-22 13:38:14 +01:00
keep_last_n.go Fix last_n keep rule (#691) (#750) 2023-12-22 13:38:14 +01:00
keep_not_replicated_test.go pruning: fix tests + implement 'not_replicated' and 'keep_regex' keep rule 2018-08-30 11:46:47 +02:00
keep_not_replicated.go run golangci-lint and apply suggested fixes 2019-03-27 13:12:26 +01:00
keep_regex_test.go pruning: add 'Negate' option to KeepRegex and expose it in config 2018-11-16 12:21:54 +01:00
keep_regex.go format source tree using goimports 2019-03-22 19:41:12 +01:00
pruning_test.go [#292] pruning: grid: add all snapshots that do not match the regex to the rule's destroy list 2020-09-02 22:45:44 +02:00
pruning.go [#373] pruning: add optional regex field to last_n rule 2020-09-02 22:45:44 +02:00