[Solved] Exclude ZFS Snapshot Folders not possible?

I tried to exclude the snapshot folders with a rule in the “disabled services” area.

One rule would be 'Service name begins with .*\.zfs.’ which doesn’t work.
I also tried with 'Service name begins with \/.*\/.*\/.*\/.*\/\.zfs\/snapshot.*’ which should ignore mounts like ‘/mnt/ritankc/projd/p_hpsn/.zfs/snapshot/’ but it doesn’t.

What am I missing?

This should be ok as ignore regex.

.*/\.zfs/snapshot/$

1 Like

No, it doesn’t and I also had to leave out the $ at the end because thats not the end of the string

Another example:
Filesystem /mnt/ritankc/projd/p_ntil/.zfs/snapshot/risnap_weekly-2021-09-22-0350

And I tried ‘Service name begins with .*/\.zfs/snapshot.*'

Nothing is excluded, I did “Actions: remove all and find new”

Yes if it is not the end of the name then the $ needs to be removed. It is not necessary to have the “.*” at the end. It is only a matching for the start of the name.
On my system this is working as expected.

That’s weird, it’s always picking up those services again.

Can you show the complete rule definition?


I’ve now even shortened it.

If you change the “Negative match” to “Positive match” then it works.
Your rule exclude the snapshot from the disabled service rule :wink:

Oh well, there we go :smiley:
Thanks very much Andreas

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.