It seems so simple to setup shadow copies with zfs and samba, but it's not working for me. Here's what i've got:
/usr/local/etc/smb.conf :
My snapshots:
...
...
And the Log (only reference to shadow)
I right click on any file and get no previous versions. that's it, no errors, even with log level 3 (that i can see, it gets pretty serious at level 3)
Code:
# uname -a
FreeBSD NAS2 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
# smbd -V
Version 3.4.14
Code:
[global]
#server info
interfaces = re0 lo
workgroup = HOME
server string = NAS2
#debugging
log file = /var/log/samba34/samba.log
log level = 2
max log size = 50
#security
preferred master = no
security = user
local master = no
dns proxy = no
#compatibility
encrypt passwords = true
#printing
printcap name = /etc/printcap
load printers = no
#share defaults
guest ok = no
invalid users = root
writable = no
#shadow copies
unix extensions=no
[jnewt]
comment=my Files
path=/zfile/jnewt
writable=yes
valid users=jnewt
#shadow copies
follow symlinks = yes
wide links = yes
vfs objects = shadow_copy2
shadow: snapdir = .zfs/snapshot
shadow: sort = desc
shadow: format= %Y_%m_%d
Code:
# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
Code:
zfile/jnewt@2012_01_01 256K - 13.2G -
zfile/jnewt@2012_01_08 38.9K - 13.2G -
zfile/jnewt@2012_01_09 50.9K - 13.2G -
zfile/jnewt@2012_01_15 43.4K - 15.5G -
Code:
zfile/jnewt@2012_08_15 3.16M - 24.3G -
zfile/jnewt@2012_08_16 3.13M - 24.3G -
zfile/jnewt@2012_08_17 3.13M - 24.3G -
zfile/jnewt@2012_08_18 3.12M - 24.3G -
And the Log (only reference to shadow)
Code:
[2012/08/18 07:39:06, 2] lib/module.c:64(do_smb_load_module)
Module '/usr/local/lib/samba34/vfs/shadow_copy2.so' loaded
I right click on any file and get no previous versions. that's it, no errors, even with log level 3 (that i can see, it gets pretty serious at level 3)