Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:services:nas:netatalk_configuration [2020/08/25 21:14] – [Basic File Share Configuration (Time Machine Server)] nwmdocs:guide-user:services:nas:netatalk_configuration [2020/08/26 18:32] – [Avahi-daemon Configuration] nwm
Line 63: Line 63:
  
 The afp.conf file contains all AFP specific configurations and AFP volume definitions. Let's edit ours with ''nano /etc/afp.conf'' and setup our Time Machine Server; we'll be using the nano text editor in this tutorial. Netatalk has a lot of great features not covered in this //guide//. Make sure to checkout the documentation for more Time Machine options and other possible AFP uses. [[http://netatalk.sourceforge.net/3.0/htmldocs/afp.conf.5.html]] The afp.conf file contains all AFP specific configurations and AFP volume definitions. Let's edit ours with ''nano /etc/afp.conf'' and setup our Time Machine Server; we'll be using the nano text editor in this tutorial. Netatalk has a lot of great features not covered in this //guide//. Make sure to checkout the documentation for more Time Machine options and other possible AFP uses. [[http://netatalk.sourceforge.net/3.0/htmldocs/afp.conf.5.html]]
 +
 +log file = /var/log/afpd.log
 +For initial configuration, it's good to check the log file.
 +
 +afp interfaces = br-lan
 +In case you have multiple interfaces. Select the one, which you want to use for listening.
  
 vol size limit = size in MiB (V) vol size limit = size in MiB (V)
 Useful for Time Machine: limits the reported volume size, thus preventing Time Machine from using the whole real disk space for backup. Example: "vol size limit = 1000" would limit the reported disk space to 1 GB. IMPORTANT: This is an approximated calculation taking into account the contents of Time Machine sparsebundle images. Therefor you MUST NOT use this volume to store other content when using this option, because it would NOT be accounted. The calculation works by reading the band size from the Info.plist XML file of the sparsebundle, reading the bands/ directory counting the number of band files, and then multiplying one with the other. Useful for Time Machine: limits the reported volume size, thus preventing Time Machine from using the whole real disk space for backup. Example: "vol size limit = 1000" would limit the reported disk space to 1 GB. IMPORTANT: This is an approximated calculation taking into account the contents of Time Machine sparsebundle images. Therefor you MUST NOT use this volume to store other content when using this option, because it would NOT be accounted. The calculation works by reading the band size from the Info.plist XML file of the sparsebundle, reading the bands/ directory counting the number of band files, and then multiplying one with the other.
 +
 +
  
 <code> <code>
Line 83: Line 91:
 valid users = @users valid users = @users
 </code> </code>
 +
 +Don't forget to restart the daemon with ''/etc/init.d/afpd restart''.
  
 ==== Avahi-daemon Configuration ==== ==== Avahi-daemon Configuration ====
Line 117: Line 127:
 rlimit-nproc=3 rlimit-nproc=3
 </code> </code>
 +
 +By default Avahi daemon requires running dbus. Start the dbus with command ''/etc/init.d/dbus start'' in case it's not running. Or disable it with ''enable-dbus=no''.
 +Start the Avahi daemon with command ''/etc/init.d/avahi-daemon start''.
  
 :!: Learn about other configuration options here [[https://github.com/lathiat/avahi]] :!: Learn about other configuration options here [[https://github.com/lathiat/avahi]]
Line 151: Line 164:
  
 :!: ''adVN=Backups'' should match the virtual volume name of your ''timemachine = YES'' share from ''/etc/afp.conf''. If you used my example settings above; leave this set to ''Backups''. Most online guides use //"TimeMachine"// however //"Backups"// is more traditional since it's the default when using macOS Server or Time Capsule; although it realy dosen't matter what you call it, as long as they both match. :!: ''adVN=Backups'' should match the virtual volume name of your ''timemachine = YES'' share from ''/etc/afp.conf''. If you used my example settings above; leave this set to ''Backups''. Most online guides use //"TimeMachine"// however //"Backups"// is more traditional since it's the default when using macOS Server or Time Capsule; although it realy dosen't matter what you call it, as long as they both match.
 +
 +Don't forget to restart the daemons after changing the configuration.
  
 **Some helpful links** **Some helpful links**
  • Last modified: 2024/09/14 00:46
  • by ticomonster