True story, recently my car was broken into and my Mac Book was stolen. Not a total loss as I keep most of my files synced to VMware Horizon data. However I did invest a lot of time setting up my Mac just the way I like it. So it dawned on me that I should probabaly start backing up my Macs. I looked into a Time Capsule from Apple and they are not cheap. Around $300. Essentialy it is just a network attached drive so I started researching if I could just create one. Here are those results.
This guide uses open source solutions and comes with no guarantee, warranty or support from myself, VMtocloud.com or VMware. Use at your own risk.
First, you will need to install Photon on either an additional Mac with Fusion or if you have vSphere on your network you will need to install it in a Virtual Machine. Make sure the Photon VM you create has enough disk space to back up your MAC
How to install Photon on a Mac with Fusion https://vmware.github.io/photon/assets/files/getting_started_with_photon_on_vmware_fusion.pdf
How to install Photon on vSphere https://vmware.github.io/photon/assets/files/getting_started_with_photon_on_vsphere.pdf
systemctl start docker
systemctl enable docker
Now lets create a shell script that starts the container with some additional parameters, change to the root directory then open the vi editor by typing vi startcapsule.sh
Press i to change to insert mode and enter the following, keep in mind you will need to change the IP address to match that of the Photon VM. Also you will want to set the AFPD_Login name and password.
docker run -d -p 192.168.100.128:548:548 -v /mybackups:/share \ -e AFPD_LOGIN=rkelly -e AFPD_PASSWORD=VMware1! \ -e AFPD_NAME="Backup" -e AFPD_SIZE_LIMIT=8000 \ --name TimeCapsule bobrik/time-container