Skip to content
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

Open
varun-munjal opened this issue May 18, 2024 · 0 comments
Open

Zrepl snapshots count. #790

varun-munjal opened this issue May 18, 2024 · 0 comments

Comments

@varun-munjal
Copy link

varun-munjal commented May 18, 2024

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:

  • name: snapjob_test_hourly
    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:

  • name: snapjob_test_nightly
    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant