zamba-lxc-toolbox icon indicating copy to clipboard operation
zamba-lxc-toolbox copied to clipboard

ZFS snapshots by "Previous Versions" not working

Open ouranos6 opened this issue 2 years ago • 3 comments

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?

ouranos6 avatar Sep 01 '23 14:09 ouranos6

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.

c1sc0 avatar Oct 30 '23 08:10 c1sc0

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: https://github.com/bashclub/zamba-lxc-toolbox/blob/20a158c9169fff2faee672739be44f496d940325/src/zmb-member/install-service.sh#L77

thorstenspille avatar Nov 01 '23 11:11 thorstenspille

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.

adams13x13 avatar Nov 06 '23 22:11 adams13x13