Apple Time Machine and Netatalk 3: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
m Created page with 'OS/X Lion (10.7) can't use Samba for backups. You have to install a new version of netatalk. I compiled 3.x from sources because the Debian version was too old (2.1) Change the …'
 
Brian Wilson (talk | contribs)
mNo edit summary
Line 1: Line 1:
OS/X Lion (10.7) can't use Samba for backups.
OS/X can't use Samba for TimeMachine backups.
You have to install a new version of netatalk. I compiled 3.x from sources
You have to install a new version of netatalk. I compiled 3.x from sources
because the Debian version was too old (2.1)
because the Debian version was too old (2.1)
== Build ==
Download source from http://sourceforge.net/projects/netatalk
and build netatalk. Currently I am using 3.1.0
# install build prerequisites
sudo apt-get install build-essential libdb-dev
# download and unpack tar ball
# cd into source folder
./configure
make
sudo make install
== Configure ==


Change the volumes to use extended attributes by editing /etc/fstab
Change the volumes to use extended attributes by editing /etc/fstab
and add user_xattr to the options
and add user_xattr to the options


Start netatalk at boot by putting it in /etc/rc.local


This is my current afp.conf file
This is my current afp.conf file
I used to start netatalk at boot by putting it in /etc/rc.local but then
I installed the standard 2.2 package and removed it, and it left behind nice
startup and config scripts that I recycled
apt-get install netatalk
apt-get remove netatalk
Edit /etc/init.d/netatalk
Edit /etc/default/netatalk


<pre>
<pre>

Revision as of 18:55, 19 January 2014

OS/X can't use Samba for TimeMachine backups. You have to install a new version of netatalk. I compiled 3.x from sources because the Debian version was too old (2.1)

Build

Download source from http://sourceforge.net/projects/netatalk and build netatalk. Currently I am using 3.1.0

# install build prerequisites
sudo apt-get install build-essential libdb-dev
# download and unpack tar ball
# cd into source folder
./configure
make
sudo make install

Configure

Change the volumes to use extended attributes by editing /etc/fstab and add user_xattr to the options


This is my current afp.conf file

I used to start netatalk at boot by putting it in /etc/rc.local but then I installed the standard 2.2 package and removed it, and it left behind nice startup and config scripts that I recycled

apt-get install netatalk
apt-get remove netatalk

Edit /etc/init.d/netatalk Edit /etc/default/netatalk

bwilson@bellman:~$ cd /usr/local/etc
bwilson@bellman:/usr/local/etc$ cat afp.conf
;
; Netatalk 3.x configuration file
; manual: http://netatalk.sourceforge.net/3.0/htmldocs/

[Global]
log level = default:error
uam list = uams_guest.so uams_dhx.so
hosts allow = 192.168.123.108 192.168.123.109
vol preset = all_volumes
guest account = timemachine

[all_volumes]
file perm = 0664
directory perm = 0775
cnid scheme = dbd
valid users = julie bwilson

; [Homes]
; basedir regex = /home

[TimeMachine]
path = /green/timemachine
time machine = yes
valid users = timemachine