I am trying to get Duplicati running system-wide (so not per user, but as root) on a Mac. When I start Duplicati as a user (double clicking the /Applications/Duplicati.app) it starts and works fine against my backend storage (minio behind nginx).
To start it system wide (at boot time) I’ve created a LaunchDaemon (which I can’t quote because preformatted xml is not displayed correctly in the forum) which attempts to launch :
/Applications/Duplicati.app/Contents/MacOS/duplicati-server
as root. I notice ~root/.config has been created and filled. I can connect to the service at localhost:8200
I’ve been working with various versions of this one. It fails when trying to create a backup with:
Failed to connect: Error making request with Error Code MethodNotAllowed and Http Status Code MethodNotAllowed. No further error information was returned by the service.
or with:
Failed to connect: A WebException with status NameResolutionFailure was thrown.
When I put in
/Applications/Duplicati.app/Contents/MacOS/duplicati
I get the same problems.
Has anyone found out how to run Duplicati as just a service on macOS?