-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zrepl snapshots count. #790
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
We've tried few combinations of grid in pruning in zrepl but unable to setup the manual custom snapshots count of lets say hourly x number and daily snapshots count of y number. Can anyone assist with this please? TIA!
Below config we tried for keeping 90 hourly snapshots but its not keeping the mentioned count:
type: snap
filesystems: {"testhost/test1": true, }
snapshotting:
type: periodic
interval: 60m
prefix: test1snap_
hooks:
- type: command
path: /usr/local/scripts/snapshot_rename_rajesh_testing.sh
filesystems: {"testhost/test1": true, }
timeout: 30s
err_is_fatal: false
pruning:
keep:
- type: grid
grid: 24x1h(keep=90)
regex: ^snapshot.hourly*
- type: regex
negate: true
regex: ^snapshot.hourly*
and below for 90 days nightly/daily snapshots:
type: snap
filesystems: {"testhost/test1": true, }
snapshotting:
type: periodic
interval: 24h
prefix: test1snapnightly_
hooks:
- type: command
path: /usr/local/scripts/snapshot_rename_rajesh_testing.sh
filesystems: {"testhost/test1": true, }
timeout: 30s
err_is_fatal: false
pruning:
keep:
- type: grid
grid: 90x1d
regex: ^snapshot.nightly*
- type: regex
negate: true
regex: ^snapshot.nightly*
Thanks.
The text was updated successfully, but these errors were encountered: