SpaceinvaderOne / Unraid_ZFS_Dataset_Snapshot_and_Replications

107 stars 23 forks source link

Child datasets, excluded still copy over. #51

Open Rossatron-UI opened 2 weeks ago

Rossatron-UI commented 2 weeks ago

So i used my pool, but left datasets clear, then yes to auto select, this enables the behavior of the entire pool being snapshotted and sent to the remote server. My issue is that I'm trying to exclude certain child datasets by using their name in the exclusion list, but they are still being snapshot and replicated. This exclusion list was using their direct name i.e. Docker, and using their full name Storage/System/Docker. They are still included either way because system is included, if i add System to exclusion list, they are not copied, i do however need system as that has data of its own not in a child dataset.

From my findings, child datasets are not counted as part of the exclusion list, in that that list is checked against the original info and if the input name is not on the scripts list it is not excluded. For example, if i put "system" in exclusion list, then it is listed when running the script as an excluded dataset, if i put it "system/docker" then when running the script its not on the exclusion list.

Only direct children of the Pool are able to be excluded when no input of dataset on script "dataset_name", children of children are not excludable.

Rossatron-UI commented 2 weeks ago

And exclude prefix with "docker" didn't do anything, i'm assuming its because the child of the child dataset isn't recognized.