[Samba] vfs_shadow_copy2 with snapprefix & delimiter options in samba 4.6.2

Edouard Guigné eguigne at pasteur-cayenne.fr
Fri Feb 16 16:50:26 UTC 2018


Hello Dear Samba Users,

I have sucessfully set a samba share on a centos 7 box (samba 4.6.2) and 
succeeded into make work snapshots (vfs_shadow_copy2 with xfs and lvm).
The snapshots appears well in windows previous versions.

However, I expected to go further with snapshots and use the options 
"shadow:snapprefix" and "shadow:delimiter"in order to filter daily, 
weekly snapshots...
I did not succeed to do it ; nothing is displayed in windows previous 
versions when "shadow:snapprefix" and "shadow:delimiter" are set.

My snapshots are with the following format, e.g. for daily snapshots : 
daily_IPG_%Y.%m.%d-%H.%M.%S
I tried
shadow:snapprefix = ^d[A-Za-z0-9]*y$
shadow:delimiter = _IPG_
shadow:format = %Y.%m.%d-%H.%M.%S

I find an example at 
https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.3/html/administration_guide/sect-smb
and I also notice that there is a bug :
https://bugzilla.redhat.com/show_bug.cgi?id=1329716
https://lists.samba.org/archive/samba/2017-April/207869.html

May you help me to configure snapprefix and delimiter options ?

Best Regards,
Ed


More information about the samba mailing list