[Samba] Sama + Windows Shadow Copies
Anton Blau
tony.blue.mailinglist at gmx.de
Tue Feb 12 07:49:07 UTC 2019
Hello,
i installed zfs-auto-snapshot with Samba/Windows Shadow Copy. If the
share contains "path = /srv/userdata/" it runs for me. But if I use
"path = /srv/userdata/%U" I get no "Previous Versions" on my Win10 Client.
I think the problem is the variable "shadow: snapdir = .zfs/snapshot". I
tried with "shadow: snapdir = ../.zfs/snapshot" and with "shadow:
snapdir = /srv/userdata/.zfs/snapshot" but it does´t works for me.
How can I get the "Previous Versions" with path = /.../%U?
The files for Windows Shadow Copy are locatet in /srv/userdata/.zfs/snapshot
Thank you!
Tony
This configuration in /etc/samba/smb.conf does not run for me:
[Eigene_Dateien]
comment = Eigene Dateien:
path = /srv/userdata/%U <--- I think this is the problem
guest ok = no
public = yes
browseable = yes
create mode = 0700
create mask = 0700
directory mask = 0700
valid users = %U
vfs objects = shadow_copy2
shadow: snapdir = .zfs/snapshot
shadow: sort = desc
shadow: format = -%Y-%m-%d-%H%M
shadow: snapprefix =
^zfs-auto-snap_(frequent){0,1}(hourly){0,1}(daily){0,1}(monthly){
0,1}
shadow: delimiter = -20
This configuration in /etc/samba/smb.conf runs. I get the "Previous
Versions" on my windows Client.
[Eigene_Dateien2]
comment = Eigene Dateien2
path = /srv/userdata/ <--- here´s the difference
guest ok = no
public = yes
browseable = yes
writeable = yes
read only = no
create mode = 0700
create mask = 0700
directory mask = 0700
valid users = %U
vfs objects = shadow_copy2
shadow: snapdir = .zfs/snapshot
shadow: sort = desc
shadow: format = -%Y-%m-%d-%H%M
shadow: snapprefix =
^zfs-auto-snap_(frequent){0,1}(hourly){0,1}(daily){0,1}(monthly){
0,1}
shadow: delimiter = -20
More information about the samba
mailing list