Skip to content

Instantly share code, notes, and snippets.

@takumaw
Last active May 13, 2020 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takumaw/990919f00e619087fca13f981ae6fc68 to your computer and use it in GitHub Desktop.
Save takumaw/990919f00e619087fca13f981ae6fc68 to your computer and use it in GitHub Desktop.
TimeMachine using Samba and Avahi
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
</service-group>
sudo defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
[global]
# :
# omitted
# :
############ Custom Config ############
client min protocol = SMB3
client max protocol = SMB3
mangled names = no
ea support = yes
vfs objects = catia fruit streams_xattr
fruit:resource = xattr
fruit:metadata = stream
# :
# omitted
# :
[TimeMachine]
comment = TimeMachine
path = /PATH_TO_YOUR_TIME_MACHINE_VOLUME
writable = Yes
browsable = Yes
guest ok = No
fruit:time machine = yes
fruit:time machine max size = 1T
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
</service-group>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment