empty child dataset even if i use recursive on the parent snapshot's dataset

magickarle

Dabbler
Joined
May 5, 2023
Messages
16
TrueNAS-SCALE-22.12.3.2

i have parent dataset called parent.
And 2 child ie: parent/child1 and parent/child2
Those 2 childs have restrictive permission (owner's user and group child1:child1 for child1 and child2:child2 for child2)
I've created a snapshot on parent with recursive (so it should take a snap of child1 and child2).

The snapshot is successful. If i clone it and do an ls on it, child1 and child2 are empty. Only files under parent shows.

Can the privilege cause an issue for those childs or maybe i'm missing something else.
 

theFra985

Cadet
Joined
Nov 27, 2023
Messages
3
Hi,
If I'm not mistaken the clone is gonna create a reference only on the clone dataset. When you snapshot recursively a new snapshot with the given name will be created on each child dataset individually. When cloning you are only referencing one of the created snapshots.
To re-create the whole tree you are gonna need to also clone the children dataset's snapshots in the right locations.
 
Top