I wanted to use my Linux machine to backup our two Macs, so I needed a version of the Bacula agent bacula-fd which was built for Mac OS X. That turned out to be pretty easy to do, but since I’ve had an amazing number of visitors to the post where I made a copy of ‘wget’ available, I thought I’d put this up here too in case anyone else is looking for it.
So here is a gzipped tar file containing the basics. Note that this doesn’t contain any of the other bits of Bacula, only the file daemon that you’ll need if you want to back your Mac up over the network from elsewhere. I haven’t done extensive testing, but it seems to be working OK. This is from Bacula 1.38.2, and was built on Mac OS X 10.4.3.
Some quick notes on how to use it:
The path names here can be changed if you edit the appropriate config files – these are just the ones I used.
- Copy bacula-fd to /usr/local/sbin (creating the directory if necessary)
- Edit bacula-fd.conf to your requirements. See the Bacula website for docs if you don’t know how to do this.
- Copy bacula-fd.conf to /usr/local/etc (again, creating the directory if necessary).
- Set the permissions so that bacula-fd.conf is not generally readable.
- Create the directory /var/bacula/working as a working directory.
- You probably want hfsplussupport = yes in the Options bit of the FileSet declaration on the server.
- You can now test it from the command line with
sudo /usr/local/sbin/bacula-fd -c /usr/local/etc/bacula-fd.conf
Add -f and -d100 if you want it to stay in the foreground and print debugging info.
- On Tiger, the right way to start things on boot-up is to use launchd. Copy bacula-fd.plist to /Library/LaunchDaemons (editing it if you’ve used any different paths).
- You can use sudo launchctl load /Library/LaunchDaemons/bacula-fd.plist to load it into your currently-running launchd. You should then be able to see it with
sudo launchctl list.
- Assuming that worked OK, you can start the daemon running with
sudo launchctl start org.bacula.bacula-fd.