fileserver: fix snapshots (#717)

Reviewed-on: #717
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2024-02-01 22:20:44 +01:00 committed by mg
parent 612e5abff6
commit 639f961190
2 changed files with 5 additions and 3 deletions

View file

@ -23,4 +23,5 @@ smb_workgroup: WORKGROUP
smb_min_protocol: "SMB2" smb_min_protocol: "SMB2"
smb_client_min_protocol: "SMB2" smb_client_min_protocol: "SMB2"
smb_client_max_protocol: "SMB3_11" smb_client_max_protocol: "SMB3_11"
smb_enable_snapshots_dir: false smb_enable_snapshots_dir: true
smb_enable_snapshots_shadow: true

View file

@ -11,15 +11,16 @@
##======================= catia ======================= ##======================= catia =======================
vfs objects = catia vfs objects = catia
catia: mappings = {{ smb_catia_mappings }} catia: mappings = {{ smb_catia_mappings }}
{% elif smb_enable_snapshots_shadow is sameas true and smb_enable_snapshots_dir is sameas false %} {% elif smb_enable_snapshots_dir is sameas false and smb_enable_snapshots_shadow is sameas true %}
##======================= shadow_copy2 ======================= ##======================= shadow_copy2 =======================
vfs objects = {{ smb_shadow_vfs_objects }} vfs objects = shadow_copy2
shadow: snapdir = {{ smb_shadow_snapdir }} shadow: snapdir = {{ smb_shadow_snapdir }}
shadow: sort = {{ smb_shadow_sort }} shadow: sort = {{ smb_shadow_sort }}
shadow: format = {{ smb_shadow_format }} shadow: format = {{ smb_shadow_format }}
shadow: snapprefix = {{ smb_shadow_snapprefix }} shadow: snapprefix = {{ smb_shadow_snapprefix }}
shadow: delimiter = {{ smb_shadow_delimiter }} shadow: delimiter = {{ smb_shadow_delimiter }}
shadow: localtime = {{ smb_shadow_localtime }} shadow: localtime = {{ smb_shadow_localtime }}
shadow: snapdirseverywhere = yes
{% elif smb_enable_snapshots_shadow is sameas true and smb_enable_snapshots_dir is sameas true %} {% elif smb_enable_snapshots_shadow is sameas true and smb_enable_snapshots_dir is sameas true %}
#======================= vfs objects ======================= #======================= vfs objects =======================
vfs objects = shadow_copy2, catia vfs objects = shadow_copy2, catia