bashclub / zamba-lxc-toolbox

Zamba LXC Toolbox a script collection to setup LXC containers on Proxmox + ZFS. Zamba is the fusion of ZFS and Samba (standalone, active directory dc or active directory member), preconfigured to access ZFS snapshots by "Previous Versions" to easily recover encrypted by ransomware files, accidently deleted files or just to revert changes.
https://aow.de/
GNU General Public License v3.0
288 stars 62 forks source link

ZFS snapshots by "Previous Versions" not working #100

Open ouranos6 opened 1 year ago

ouranos6 commented 1 year ago

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 commented 10 months ago

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 commented 10 months ago

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

adams13x13 commented 10 months ago

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.