I went through this recently. A few tips. I set this up using Launch Control application. Just as easily just edit the plist file.
- Make sure you set your Working Directory in the plist to somewhere you have write access. Big Sur has some read only volumes so something like / won’t work. I personally use /Users/Brady/ so it is easier to access the filters with BBEdit (I don’t edit filters using web UI). I still have access to entire filesystem, this is only where the config/cache is saved for convenience.
- There are two REQUIRED environment variables on the daemon
- DWE_PASSWORD needs to be your password you set in the config. Running as root does not have access to the system keychain. Without this your backups won’t run because DWE can’t read the config file.
- HOME This one is what caught me up for a month. In the launch daemon you set a working Directory, but DWE does not use that working directory. I also pass that same directory to DWE.
Here is my working plist. I assume when the app is native for m1, we might have to change the program key. I know that is dependent on upstream support from Go (which I believe was just recently released)
com.duplicacy.plist
in /Library/LaunchDaemons
:
<?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>EnvironmentVariables</key>
<dict>
<key>DWE_PASSWORD</key>
<string>YOURPASSWORDHERE/string>
<key>HOME</key>
<string>/Users/brady</string>
</dict>
<key>Label</key>
<string>com.duplicacy</string>
<key>Program</key>
<string>/Applications/Duplicacy Web Edition.app/Contents/MacOS/duplicacy_web_osx_x64</string>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Users/brady/</string>
</dict>
</plist>
After you save the plist file to the correct place, make sure you load it using launchctl. Simply dropping the file will not activate it. Once it is active, it should launch on boot.
launchctl load /Library/LaunchDaemons/com.duplicacy.plist
I tried 4 different times to get this working over the past 6 months. I figured this out last week
Hope the plist helps.