Snapshot acting weird in different share level of folder

zookeeper21

Dabbler
Joined
Jan 25, 2021
Messages
33
I just learn about Truenas snapshot feature and seems like really good, but I am having different outcome if I use main folder share vs subfolder. I tried to create video so you can understand.

Why am I getting error if I try to restore from previous version where if I use main folder share (IMP-BackUP in my case) ? and why can't I see previous version in subfolder under main folder (IMP-BackUP >> Documents) but I can see if I use subfolder sharable (Documents) and subfolder of that (test in my example) shows previous verion.

I would appreciate any input or advise. Thanks in advance.

Here is video of it:

 

zookeeper21

Dabbler
Joined
Jan 25, 2021
Messages
33
Any one has any input?
 

zookeeper21

Dabbler
Joined
Jan 25, 2021
Messages
33
Last bump before I give up!!
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
@anodos, in order for @zookeeper21 to do this, periodic snapshots have to be enabled at both levels, correct? Or recursive snapshots enabled at the top level?
 

zookeeper21

Dabbler
Joined
Jan 25, 2021
Messages
33
I did that. When I created snapshot, as you can see in video, I did click recursive enabled at the top level. and as you can see that I do have backup all recursive folders in list. Thank you for looking into this.
 
Joined
Oct 22, 2019
Messages
3,641
periodic snapshots have to be enabled at both levels, correct? Or recursive snapshots enabled at the top level?
I can't get Explorer's "Previous Versions" to work with manual snapshots, of which I read further that TrueNAS is designed to use this built-in feature of Windows with periodic snapshots only.

I always wondered why this limitation exists. Isn't a snapshot's timestamp... a timestamp?

Why does it matter if it was created automatically (from a Periodic Snapshot Task) or manually?



I did that. When I created snapshot, as you can see in video, I did click recursive enabled at the top level. and as you can see that I do have backup all recursive folders in list. Thank you for looking into this.
I believe, as @Samuel Tai suggested, it's because you're trying it with a manual snapshot, as opposed to a periodic automatically created one.
 
Joined
Oct 22, 2019
Messages
3,641
Fixed for U2 (verified by some affected users). U2 should be released this week.
Does that apply to manual snapshots as well, or only ones created automatically with a Periodic Snapshot Task? (Mentioned above in previous post.)

The OP’s example used manually created snapshots.
 

zookeeper21

Dabbler
Joined
Jan 25, 2021
Messages
33
I can't get Explorer's "Previous Versions" to work with manual snapshots, of which I read further that TrueNAS is designed to use this built-in feature of Windows with periodic snapshots only.

I always wondered why this limitation exists. Isn't a snapshot's timestamp... a timestamp?

Why does it matter if it was created automatically (from a Periodic Snapshot Task) or manually?



I believe, as @Samuel Tai suggested, it's because you're trying it with a manual snapshot, as opposed to a periodic automatically created one.

I do have set up periodic snapshot with recursive on as well and same behavior. I did at highest level of pool so I don't have to set up each separately. Here is screenshot of my periodic snapshot settings:


edit: behavior is same either I do manual or periodic one.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Does that apply to manual snapshots as well, or only ones created automatically with a Periodic Snapshot Task? (Mentioned above in previous post.)

The OP’s example used manually created snapshots.
There's no difference at the end of the day between a manual snapshot or an automated one from Samba's perspective. They're all snapshots.
 
Joined
Oct 22, 2019
Messages
3,641
There's no difference at the end of the day between a manual snapshot or an automated one from Samba's perspective. They're all snapshots.


This is what I read from the 11.3-U5 official guide:
Shadow copies will not work with a manual snapshot. Creating a periodic snapshot task for the pool or dataset being shared by SMB or a recursive task for a parent dataset is recommended.

Has this changed for 12.x? I noticed this line is omitted from the TrueNAS Core Documentation Hub.
 
Top