Successfully installed ZFS snapshot and enabled shadow copy in Windows, have a summary below, could be helpful for everyone.
1. Install ZFS
Follow the above link to install.
After creating a pool, need to change some properties of the pool.
aclinherit=passthrough
acltype=posixacl
set xattr=sa
2. Install CIFS share and Set permissions
3. Install ZFS Sanpshot
Click the above link. It works with OMV6 as well.
4. Install samba-vfs-modules package
SSH to OMV as root and run:
apt install samba-vfs-modules
5. In OMV GUI, go to Servcies>SMB/CIFS>Shares, Select a share for enabling shadowcopy. Edit. Copy the below one of the configurations to Extra. Can’t include all type of formats, the system will either stop working or only use the last format.
For frequent snapshots only
vfs objects = shadow_copy2
shadow:snapdir = .zfs/snapshot
shadow:sort = desc
shadow:format = zfs-auto-snap_frequent-%Y-%m-%d-%H%M
For hourly snapshots only
vfs objects = shadow_copy2
shadow:snapdir = .zfs/snapshot
shadow:sort = desc
shadow:format = zfs-auto-snap_hourly-%Y-%m-%d-%H%M
For weekly snapshots only
vfs objects = shadow_copy2
shadow:snapdir = .zfs/snapshot
shadow:sort = desc
shadow:format = zfs-auto-snap_weekly-%Y-%m-%d-%H%M
For monthly snapshots only
vfs objects = shadow_copy2
shadow:snapdir = .zfs/snapshot
shadow:sort = desc
shadow:format = zfs-auto-snap_monthly-%Y-%m-%d-%H%M