Skip to content

Instantly share code, notes, and snippets.

  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save johannrichard/0f18cabf481fb8df877cb9c4a1021c48 to your computer and use it in GitHub Desktop.
<?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>
@johannrichard
Copy link
Author

johannrichard commented Apr 10, 2020

Download and copy Duplicate to your /Applications folder. Don't run it yet.

Create the two files from the above:

/Library/LaunchDaemons/net.duplicati.server.plist
/Library/LaunchAgents/net.duplicati.tray-icon.plist

And then run Duplicati

launchctl load -w /Library/LaunchDaemons/net.duplicati.server.plist
launchctl load -w /Library/LaunchAgents/net.duplicati.tray-icon.plist

Running on MacOS Catalina (10.15.3) with Duplicati (2.0.5.1_beta_2020-01-18).

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