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

How to exclude child datasets from snapshots? #627

Closed
deviantintegral opened this issue Mar 22, 2021 · 2 comments
Closed

How to exclude child datasets from snapshots? #627

deviantintegral opened this issue Mar 22, 2021 · 2 comments

Comments

@deviantintegral
Copy link
Contributor

I have Docker set up with the zfs storage driver. Since those images are easily rebuildable or retrievable, I have no need to snapshot or back them up. I thought I could skip them with something like this:

[socks]
        use_template = production
        recursive = yes

[socks/docker]
        use_template = none
        recursive = yes

[template_production]
        frequently = 4
        hourly = 36
        daily = 30
        monthly = 3
        yearly = 0
        autosnap = yes
        autoprune = yes

[template_none]
        autosnap = no
        autoprune = no
        frequently = 0
        hourly = 0
        daily = 0
        monthly = 0
        yearly = 0

However, I'm still getting snapshots for the docker dataset.

I'm guessing that the recursive snap for the whole pool is taking precedence. If that's the case, and this isn't a bug, let me know and I'd be glad to add a docs clarification.

@phreaker0
Copy link
Collaborator

@deviantintegral the posted config should work. Can you post a sanoid run with "--debug" flag?

@deviantintegral
Copy link
Contributor Author

I went to create a test case and I'm no longer seeing this. I also confirmed that I can't replicate in 2.0.3, so it's not an unintentional fix. Perhaps I had a typo in my config before.

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

2 participants