ubuntuGary
2023-03-08 09:05:57 +08:00
如果你能修改 smb.conf 的话,可以试试如下配置:
```config
[global]
# Time Machine stuff start
# Apple extensions ("AAPL") run under SMB2/3 protocol,
# make that the minimum (probably shouldn't be running SMB1 anyway...)
# - defaults to SMB2_2 in Samba 4.11+:
min protocol = SMB2
ea support = yes
# Load in modules (order is critical!) and enable AAPL extensions:
vfs objects = acl_xattr catia fruit streams_xattr
fruit:nfs_aces = no
inherit permissions = yes
# Server icon in Finder (added in Samba 4.5):
fruit:model = MacSamba
# File cleanup:
# added in Samba 4.5
fruit:posix_rename = yes
# added in Samba 4.3
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
# How to store OS X metadata:
fruit:metadata = stream
# sportlight elasticsearch
spotlight backend = elasticsearch
elasticsearch:address = localhost
elasticsearch:port = 9200
# Time Machine stuff end
```