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

ZFS snapshots by "Previous Versions" not working #100

Open
ouranos6 opened this issue Sep 1, 2023 · 3 comments
Open

ZFS snapshots by "Previous Versions" not working #100

ouranos6 opened this issue Sep 1, 2023 · 3 comments

Comments

@ouranos6
Copy link

ouranos6 commented Sep 1, 2023

Hello,

I've installed everything following your installation guide and it's working, I can access the web interface and mount the share folder onto my win11.

I've tried to see the differents versions of my same text file but not possible.

If I run

zfs list -t snapshot zfs list

I can see all the snapshots I've done.

Do you have some hints or ideas about that?

@c1sc0
Copy link

c1sc0 commented Oct 30, 2023

Hello,

you need to install zfs-auto-snapshot on host system. (configure it according to the following guide) Or you can create the snapshots manually and naming them correctly: test-zfs/subvol-101-disk-0@zfs-auto-snap_frequent-2023-10-30-0830 etc.

@thorstenspille
Copy link
Contributor

thorstenspille commented Nov 1, 2023

zmb-member are zmb-standalone are preconfigured for zfs-auto-snapshot, but also works with other snapshot engines. You need to adjust the regex search filter in /etc/samba/smb.conf inside the container to match the snapshot names of the installed snapshot engine:

shadow: snapprefix = ^zfs-auto-snap_\(frequent\)\{0,1\}\(hourly\)\{0,1\}\(daily\)\{0,1\}\(weekly\)\{0,1\}\(monthly\)\{0,1\}\(backup\)\{0,1\}\(manual\)\{0,1\}

@adams13x13
Copy link

adams13x13 commented Nov 6, 2023

One should mention that all these funny things do not work as expected in 'zmb-standalone'. There, the configuration is stored in the registry with fancy web editor from 45drives. This editor does not work with lines starting with a dash (message Invalid option -20: unknown option). Registry tools (sudo net conf setparm global "shadow: delimiter" -20) do not work either.

Other values do not do the magic, as mentioned here and there.

The only solution I have found is to manually put this into /etc/samba/smb.conf and not in the registry.

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

4 participants