<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hurlster.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Time_Machine</id>
	<title>Time Machine - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hurlster.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Time_Machine"/>
	<link rel="alternate" type="text/html" href="https://hurlster.com/wiki/index.php?title=Time_Machine&amp;action=history"/>
	<updated>2026-05-15T19:57:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://hurlster.com/wiki/index.php?title=Time_Machine&amp;diff=2508&amp;oldid=prev</id>
		<title>Gqwill69: /* AFP Time Machine 10.8 */</title>
		<link rel="alternate" type="text/html" href="https://hurlster.com/wiki/index.php?title=Time_Machine&amp;diff=2508&amp;oldid=prev"/>
		<updated>2012-10-31T22:02:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;AFP Time Machine 10.8&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Ubuntu Time Machine designs&lt;br /&gt;
== AFP Time Machine 10.8 ==&lt;br /&gt;
This is closer to what an Airport Base Station would do&amp;lt;br&amp;gt;&lt;br /&gt;
Framework - Ubuntu (Precise) 12.10, OSX 10.8&lt;br /&gt;
 apt-get install netatalk avahi-daemon libssl-dev libnss-mdns&lt;br /&gt;
&lt;br /&gt;
* /etc/netatalk/AppleVolumes.default&lt;br /&gt;
You must manually create &amp;#039;&amp;#039;&amp;#039;dbpath&amp;#039;&amp;#039;&amp;#039; directory&lt;br /&gt;
&lt;br /&gt;
 # Netatalk defaults applied to shares&lt;br /&gt;
 :DEFAULT: options:upriv,usedots cnidscheme:dbd dbpath:/var/dbd/AppleDB/$v allowed_hosts:192.168.0.0/24&lt;br /&gt;
 &lt;br /&gt;
 # Time Machine volume&lt;br /&gt;
 /var/local/storage/TimeMachine &amp;quot;Time Machine&amp;quot; volsizelimit:1000000 allow:&amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039;,&amp;#039;&amp;#039;&amp;#039;username2&amp;#039;&amp;#039;&amp;#039;,@timemachine options:usedots,upriv,tm&lt;br /&gt;
&lt;br /&gt;
* /etc/netatalk/afpd.conf&lt;br /&gt;
 # Default AFP server&lt;br /&gt;
 &amp;quot;areus&amp;quot; -tcp -noddp -nosavepassword -nosetpassword -nodebug -nouservolfirst -nouservol -closevol \&lt;br /&gt;
 #  -fqdn server.mydomain [optional] \                      &lt;br /&gt;
   -mimicmodel AirPort \&lt;br /&gt;
   -ipaddr 192.168.0.254 \&lt;br /&gt;
   -port 548 \&lt;br /&gt;
   -unixcodepage utf8 \&lt;br /&gt;
   -volnamelen 255 \&lt;br /&gt;
   -uampath /usr/lib/netatalk \&lt;br /&gt;
   -uamlist uams_dhx.so,uams_dhx2_passwd.so,uams_guest.so \                  &lt;br /&gt;
   -defaultvol /etc/netatalk/AppleVolumes.default \&lt;br /&gt;
   -systemvol /etc/netatalk/AppleVolumes.system \&lt;br /&gt;
   -sleep 168              &lt;br /&gt;
 &lt;br /&gt;
 # AFPd Logging&lt;br /&gt;
 - -setuplog &amp;quot;AFPDaemon log_info /var/log/netatalk/afpd.log&amp;quot; \               &lt;br /&gt;
   -setuplog &amp;quot;UAMSDaemon log_info /var/log/netatalk/uams.log&amp;quot; \              &lt;br /&gt;
   -setuplog &amp;quot;Default log_info /var/log/netatalk/netatalk.log&amp;quot;                &lt;br /&gt;
&lt;br /&gt;
* /etc/default/netatalk&lt;br /&gt;
 # Netatalk configuration&lt;br /&gt;
 &lt;br /&gt;
 #########################################################################&lt;br /&gt;
 # Global configuration&lt;br /&gt;
 #########################################################################&lt;br /&gt;
 &lt;br /&gt;
 #### machine&amp;#039;s AFPserver/AppleTalk name.&lt;br /&gt;
 #ATALK_NAME=machinename&lt;br /&gt;
 &lt;br /&gt;
 #### server (unix) and legacy client (&amp;lt;= Mac OS 9) charsets&lt;br /&gt;
 ATALK_UNIX_CHARSET=&amp;#039;LOCALE&amp;#039;&lt;br /&gt;
 ATALK_MAC_CHARSET=&amp;#039;MAC_ROMAN&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 #### Don&amp;#039;t Edit. export the charsets, read form ENV by apps&lt;br /&gt;
 export ATALK_UNIX_CHARSET&lt;br /&gt;
 export ATALK_MAC_CHARSET&lt;br /&gt;
 &lt;br /&gt;
 #########################################################################&lt;br /&gt;
 # AFP specific configuration&lt;br /&gt;
 #########################################################################&lt;br /&gt;
 &lt;br /&gt;
 #### Set which daemons to run.&lt;br /&gt;
 #### If you use AFP file server, run both cnid_metad and afpd.&lt;br /&gt;
 CNID_METAD_RUN=yes&lt;br /&gt;
 AFPD_RUN=yes&lt;br /&gt;
 &lt;br /&gt;
 #### maximum number of clients that can connect:&lt;br /&gt;
 #AFPD_MAX_CLIENTS=20&lt;br /&gt;
 &lt;br /&gt;
 #### UAMs (User Authentication Modules)&lt;br /&gt;
 #### available options: uams_dhx.so, uams_dhx2.so, uams_guest.so,&lt;br /&gt;
 ####                    uams_clrtxt.so(legacy), uams_randnum.so(legacy)&lt;br /&gt;
 #AFPD_UAMLIST=&amp;quot;-U uams_dhx2.so,uams_clrtxt.so&amp;quot;&lt;br /&gt;
 AFPD_UAMLIST=&amp;quot;-U uams_dhx2_passwd.so,uams_guest.so&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 #### Set the id of the guest user when using uams_guest.so&lt;br /&gt;
 AFPD_GUEST=nobody&lt;br /&gt;
 &lt;br /&gt;
 #### config for cnid_metad. Default log config:&lt;br /&gt;
 CNID_CONFIG=&amp;quot;-l log_note&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 #########################################################################&lt;br /&gt;
 # AppleTalk specific configuration (legacy)&lt;br /&gt;
 #########################################################################&lt;br /&gt;
 &lt;br /&gt;
 #### Set which legacy daemons to run.&lt;br /&gt;
 #### If you need AppleTalk, run atalkd.&lt;br /&gt;
 #### papd, timelord and a2boot are dependent upon atalkd.&lt;br /&gt;
 ATALKD_RUN=no&lt;br /&gt;
 PAPD_RUN=no&lt;br /&gt;
 TIMELORD_RUN=no&lt;br /&gt;
 A2BOOT_RUN=no&lt;br /&gt;
 &lt;br /&gt;
 #### Control whether the daemons are started in the background.&lt;br /&gt;
 #### If it is dissatisfied that legacy atalkd starts slowly, set &amp;quot;yes&amp;quot;.&lt;br /&gt;
 #### In case using systemd/systemctl, this is not so significant.&lt;br /&gt;
 ATALK_BGROUND=no&lt;br /&gt;
 &lt;br /&gt;
 #### Set the AppleTalk Zone name.&lt;br /&gt;
 #### NOTE: if your zone has spaces in it, you&amp;#039;re better off specifying&lt;br /&gt;
 ####       it in atalkd.conf&lt;br /&gt;
 #ATALK_ZONE=@zone&lt;br /&gt;
&lt;br /&gt;
== AFP Time Machine 10.6 ==&lt;br /&gt;
This is closer to what an Airport Base Station would do&amp;lt;br&amp;gt;&lt;br /&gt;
Framework - Ubuntu (Natty) 11.04, OSX 10.5.3 or 10.6&lt;br /&gt;
 apt-get install netatalk avahi-daemon libssl-dev libnss-mdns&lt;br /&gt;
&lt;br /&gt;
==== Netatalk Configuration ====&lt;br /&gt;
nano /etc/default/netatalk&lt;br /&gt;
 ATALKD_RUN=no&lt;br /&gt;
 PAPD_RUN=no&lt;br /&gt;
 CNID_METAD_RUN=&amp;#039;&amp;#039;yes&amp;#039;&amp;#039;&lt;br /&gt;
 AFPD_RUN=&amp;#039;&amp;#039;yes&amp;#039;&amp;#039;&lt;br /&gt;
 TIMELORD_RUN=no&lt;br /&gt;
 A2BOOT_RUN=no&lt;br /&gt;
&lt;br /&gt;
nano /etc/netatalk/afpd.conf&lt;br /&gt;
 - - transall -uamlist uams_randnum.so,uams_dhx2.so -nosavepassword -advertise_ssh&lt;br /&gt;
&lt;br /&gt;
Make directory to store your backups, make it at least the size of the current hard disk on client machine.&amp;lt;br&amp;gt;&lt;br /&gt;
 mkdir /var/local/storage/TimeMachine&lt;br /&gt;
Fix Permissions&lt;br /&gt;
 chmod 777 /var/local/storage/TimeMachine&lt;br /&gt;
Create Apple file to be read&lt;br /&gt;
 touch /var/local/storage/TimeMachine/.com.apple.timemachine.supported&lt;br /&gt;
&lt;br /&gt;
nano /etc/netatalk/AppleVolumes.default&lt;br /&gt;
 /home/username/TimeMachine TimeMachine allow:username1 cnidscheme:dbd options:usedots,upriv&lt;br /&gt;
Restart the service&lt;br /&gt;
 service netatalk restart&lt;br /&gt;
&lt;br /&gt;
==== Avahi Daemon ====&lt;br /&gt;
This will announce the Apple File Share&amp;lt;br&amp;gt;&lt;br /&gt;
nano /etc/nsswitch.conf&lt;br /&gt;
 hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 &amp;#039;&amp;#039;mdns&amp;#039;&amp;#039;&lt;br /&gt;
nano /etc/avahi/services/afpd.service&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; standalone=&amp;#039;no&amp;#039;?&amp;gt;&amp;lt;!--*-nxml-*--&amp;gt;&lt;br /&gt;
 &amp;lt;!DOCTYPE service-group SYSTEM &amp;quot;avahi-service.dtd&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;service-group&amp;gt;&lt;br /&gt;
 &amp;lt;name replace-wildcards=&amp;quot;yes&amp;quot;&amp;gt;%h&amp;lt;/name&amp;gt;&lt;br /&gt;
 &amp;lt;service&amp;gt;&lt;br /&gt;
 &amp;lt;type&amp;gt;_afpovertcp._tcp&amp;lt;/type&amp;gt;&lt;br /&gt;
 &amp;lt;port&amp;gt;548&amp;lt;/port&amp;gt;&lt;br /&gt;
 &amp;lt;/service&amp;gt;&lt;br /&gt;
 &amp;lt;service&amp;gt;&lt;br /&gt;
 &amp;lt;type&amp;gt;_device-info._tcp&amp;lt;/type&amp;gt;&lt;br /&gt;
 &amp;lt;port&amp;gt;0&amp;lt;/port&amp;gt;&lt;br /&gt;
 &amp;lt;txt-record&amp;gt;model=Xserve&amp;lt;/txt-record&amp;gt;&lt;br /&gt;
 &amp;lt;/service&amp;gt;&lt;br /&gt;
 &amp;lt;/service-group&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Avahi&lt;br /&gt;
 service avahi-daemon restart&lt;br /&gt;
&lt;br /&gt;
==== Client Machine Setup ====&lt;br /&gt;
In order for OSX to use a disk for backup that isn&amp;#039;t local the following command is required.&lt;br /&gt;
 defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1&lt;br /&gt;
&lt;br /&gt;
=== Time Machine Full Restore ===&lt;br /&gt;
In case of a full system restore you would have to boot your Mac from the Mac OS X &amp;lt;br&amp;gt;installation DVD (the one delivered with your Mac) by pressing the c key during boot. Your Mac will start with&amp;lt;br&amp;gt; a minimal UI where you have a Utilities section in the top menu bar. There you’ll find “Restore from a Time Machine&amp;lt;br&amp;gt; Backup” but it won’t find your network share with your Time Machine backup. Luckily Dmitry Nedospasov found a way&amp;lt;br&amp;gt; to manage this by simply mounting your Time Machine network share with the Terminal (which you can find under &amp;lt;br&amp;gt;Utilities in the menu bar too) by utilizing the following syntax:&lt;br /&gt;
 mount -t afp afp://username:password@hostname/ShareName /Volumes/ShareMount&lt;br /&gt;
&lt;br /&gt;
credit to:&lt;br /&gt;
 http://talklikeaduck.denhaven2.com/2010/07/19/ubuntu-timemachine-server-for-snow-leopard&lt;br /&gt;
 http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/&lt;br /&gt;
&lt;br /&gt;
== iSCSI Time Machine ==&lt;br /&gt;
I tried this setup, it works, but has a lot of room for error and a client application has to be installed/ran on the client OSX machine.&lt;br /&gt;
&lt;br /&gt;
Prerequisite&lt;br /&gt;
 apt-get install iscsitarget&lt;br /&gt;
&lt;br /&gt;
/etc/ietd.conf&lt;br /&gt;
 # &amp;quot;iSNSServer&amp;quot; is the iSNS server you want your portal to register&lt;br /&gt;
 # with.&lt;br /&gt;
 ADDRESS=&amp;quot;192.168.0.254&amp;quot;&lt;br /&gt;
 Target iqn.2010-02.net.hurlster:storage.sdb2&lt;br /&gt;
         #IncomingUser someuser secret&lt;br /&gt;
         #OutgoingUser&lt;br /&gt;
         Lun 0 Path=/dev/sdc2,Type=fileio&lt;br /&gt;
         Alias LUN1&lt;br /&gt;
         #MaxConnections  6&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Gqwill69</name></author>
	</entry>
</feed>