Skip to content

Instantly share code, notes, and snippets.

@ErikFontanel
Last active January 4, 2020 16:55
Show Gist options
  • Save ErikFontanel/1e64dcaade5d503163ad27867606698c to your computer and use it in GitHub Desktop.
Save ErikFontanel/1e64dcaade5d503163ad27867606698c to your computer and use it in GitHub Desktop.
Time Capsule on optware
;
; Netatalk 3.x configuration file
;
[Global]
; Global server settings
; Inspiration and background:
; http://blog.khubla.com/freebsd/time-machine-backups-using-freebsd-zfs
;
; create group tmusers, add users
; Make sure the directory `dbpath/$u` for each user exists
;
vol dbpath = /opt/var/netatalk/CNID/$u/$v/
vol preset = default_for_all_vol
mimic model = TimeCapsule6,116
disconnect time = 1
log level = default:warn
log file = /var/log/afpd.log
[default_for_all_vol]
file perm = 0664
directory perm = 0750
valid users = @tmusers @root
[TimeMachine]
path = /tmp/mnt/sda1/backups/$u
vol size limit = 750000
time machine = yes
  1. Install netatalk opkg install netatalk
  2. Modify /opt/etc/afpd.conf
  3. Make users and directories for Time Capsule users (optionally use -D for no passwd)
addgroup tmusers
adduser -G tmusers -H userx -D
mkdir -p /tmp/mnt/sda1/backups/userx
mkdir -p /opt/var/netatalk/CNID/userx
chown userx:tmusers /tmp/mnt/sda1/backups/userx
chmod 700 /tmp/mnt/sda1/backups/userx
chmod 774 /tmp/mnt/sda1/backups/
  1. Start netatalk /opt/etc/init.d/S27afpd start
  2. Login on TimeMachine afp://userx@hostname
  3. Add disk to TimeMachine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment