Set up Time Machine Server on Gentoo for Lion

03 Oct 2011


Set up server on gentoo

# macOX 10.7 need netatalk-2.2.0 or above
echo 'net-fs/netatalk ~amd64' >> /etc/portage/package.keywords
emerge netatalk avahi

# Make folder `/opt/TimeMachie' a shared volumn to your mac.
# Option `tm' is important, which means this volumn is used by timemachine
echo '/opt/TimeMachine TimeMachine cnidscheme:dbd options:tm' >> /etc/netatalk/AppleVolumes.default
echo '- -tcp -noddp -uamlist, -nosavepassword' >> /etc/netatalk/afpd.conf
cat << EOF >/etc/avahi/services/afpd.service
<!--?xml version="1.0" standalone='no'?--><!--*-nxml-*-->
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<!-- Customize this to get a different name for your server in the Finder. -->
<name replace-wildcards="yes">%h</name>
<!-- Customize this to get a different icon in the Finder. -->

rc-update add avahi-daemon default
rc-update add netatalk default

Set up Time Machine on OS X lion

# Make Time Machine could use disks through the network
defaults write TMShowUnsupportedNetworkVolumes 1

comments powered by Disqus