-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement fast skip of "keep all" pruning
Instead of configuration like this: ``` yaml pruning: keep: - type: "regex" regex: ".*" ``` or like this: ``` yaml pruning: keep_sender: - type: "regex" regex: ".*" keep_receiver: ``` which keeps all snapshots, now it's possible to omit `pruning:` at all, or one of `keep_sender:` or `keep_receiver:`. In this case zrepl will early abort pruning and mark it as done. Originally zrepl requests all snapshots and does nothing after that, because pruning configured to keep all snapshots, but anyway it spends some time executing zfs commands.
- Loading branch information
Showing
3 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters