Skip to content

How to setup snapshots and pruning with zrepl without any replication (yet) #711

Answered by ovizii
ovizii asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for pointing out my mistake. I did not read the documentation as "requiring a regex rule" - I mistakenly read it as an option.

So after adding a regex, here is what happens:

global:
  logging:
    - type: syslog
      format: human
      level: warn

jobs:
- name: Documents
  type: snap
  filesystems: {
     "sixer/Documents": true,
  }
  snapshotting:
    type: periodic
    prefix: zrepl_
    interval: 15m
    timestamp_format: human
  pruning:
    keep:
      - type: regex
        regex: "^zrepl_.*"
      - type: grid
        grid: 1x1h(keep=4) | 24x1h(keep=1) | 7x1d(keep=1) | 4x1w(keep=1) | 12x4w(keep=1) | 1x53w(keep=1)

zrepl configcheck

could not parse config: yaml: unmarshal …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ovizii
Comment options

Answer selected by InsanePrawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants