Skip to content

Instantly share code, notes, and snippets.

@astreknet
Last active August 22, 2023 16:07
Show Gist options
  • Save astreknet/b5834b5f862e46c81bf76d21c9af85ea to your computer and use it in GitHub Desktop.
Save astreknet/b5834b5f862e46c81bf76d21c9af85ea to your computer and use it in GitHub Desktop.
Apple's Time Machine on an OpenBSD box

Time Machine on OpenBSD

Minimalist installation of Apple's Time Machine on an OpenBSD box

Ingredients

Installation

  • On the server:

    1. Install netatalk # pkg_add netatalk
    2. # rcctl enable messagebus avahi_daemon netatalk
    3. # rcctl order messagebus avahi_daemon netatalk
    4. minimalist netatalk configuration:
      ; Netatalk 3.x configuration file
      
      [Global]
      ; Global server settings
      ; mimic model = TimeCapsule6,106
      vol preset = defaults
      hostname = your_host
      log file = /var/log/netatalk.log
      mimic model = Xserver
      keep sessions = yes
      
      [defaults]
      file perm = 0664
      directory perm = 0774
      cnid scheme = dbd
      
      [TimeMachine]
      time machine = yes
      path = /home/user/time_machine
      vol size limit = 500000
      valid users = your_user_name
      
    5. start # rcctl start messagebus avahi_daemon netatalk
  • On the macOS box:

    1. Finder -> Network -> Connect as: your_user_name (on OpenBSD) and password
    2. Time Machine -> Add or Remove Backup Disk...

Remarks

  • I used a Raspberry Pi box with an SSD drive
  • It is posibble to create a new user on the OpenBSD box as timemachine in order to hold different users backups.

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment