Time Capsule on Raspberry Pi for storing Time Machine backups (rpi-raspbian + bobrik/time-container)
10K+
Docker container that creates an AFP share for storing Time Machine backups.
Dockerfile: [https://bitbucket.org/trnape/rpi-timecapsule][1]
Based on [https://github.com/bobrik/time-container][2] and [https://hub.docker.com/r/resin/rpi-raspbian/][3]
-e AFPD_LOGIN=<login> -e AFPD_PASSWORD=<password> \
-e AFPD_NAME="<share name>" -e AFPD_SIZE_LIMIT=<size limit in mb if needed> \
--name <container name> trnape/rpi-timecapsule```
This will bind `afpd` to docker host ip address and mount
directory on docker host to container.
### Memory limit
Starting a container with constraint on memory should prevent memory exhaustion on the host. RPi can even crash on a failed memory allocation for a kernel thread.
```docker run --memory 64M -d -p ...```
## Connecting
Open Finder, then press ⌘K. Enter `afp://<docker_host_ip>` and
press `Connect`. Enter login and password you supplied at
the run stage.
That's it!
## Time machine
Note that Time Machine will not work on non-standard port, so use 548.
You may need to run the following command to enable Time machine backups:
```defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 ```
[1]: https://bitbucket.org/trnape/rpi-timecapsule
[2]: https://github.com/bobrik/time-container
[3]: https://hub.docker.com/r/resin/rpi-raspbian/
Content type
Image
Digest
sha256:4e9953a17…
Size
62.7 MB
Last updated
over 10 years ago
docker pull trnape/rpi-timecapsule