Setup Networked Time Machine Drive

sudo apt-get install samba avahi-daemon
sudo adduser timemachine
sudo chown -R timemachine: /mnt/TMDrive
sudo nano /etc/samba/smb.conf
[backups]
comment = Backups
path = /mnt/TMDrive
valid users = timemachine
read only = no
vfs objects = catia fruit streams_xattr
fruit:time machine = yes
sudo testparm -s
sudo smbpasswd -a timemachine
sudo service smbd reload
sudo nano /etc/avahi/services/samba.service
<?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>
<type>_device-info._tcp</type>
<port>9</port>
<txt-record>model=TimeCapsule8,119</txt-record>
</service>
<service>
<type>_adisk._tcp</type>
<port>9</port>
<txt-record>dk0=adVN=backups,adVF=0x82</txt-record>
<txt-record>sys=adVF=0x100</txt-record>
</service>
</service-group>sudo nano /etc/avahi/services/samba.service

Restart Avahi daemon:

sudo service avahi-daemon restart

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Drake Evans

Drake Evans

A smart man can rationalize anything; set rules and don't break them. Biomedical Engineering, Computer Science, Finance, Economics.