Mike Hathaway

Configuring Duplicati as a Service on OS X 10.13

GitHub Logo

Duplicati as a Mac Service

I am not the only CrashPlan cast off looking for another backup service. After a lot of looking around I settled on Duplicati. https://duplicati.com

For Mac OS X Duplicati is a simple install but you will find permissions errors when venturing outside of your user folder. The fix is to run Duplicati as a service so it launches as a Deamon on boot. To accomplish this you need to install Duplicati, Mono and a couple Plists.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install mono

Code

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>net.duplicati.server</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Applications/Duplicati.app/Contents/MacOS/duplicati-server</string>
        <string>--webservice-port=8200</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>LaunchOnlyOnce</key>    
    <true/>
    <key>KeepAlive</key>
    <true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>net.duplicati.tray-icon</string>
    <key>ProgramArguments</key>
    <array>
        <string>open</string>
        <string>/Applications/Duplicati.app/</string>
        <string>--args</string>
        <string>--hosturl="http://localhost:8200"</string>
        <string>--no-hosted-server</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>

Now after rebooting you simply goto your web browser http://localhost:8200 and start configuring Duplicati.


comments powered by Disqus