Yes Kees-z’s is much cleaner than mine, i did need to change the auto run script, because his started on the default port (8200) but that conflicts with the DNLA on the nas. so you need to change that to 8300.
I’m just doing some test backups and making sure everything works.
Good spot! Somehow this was replaced by a $ character in the init script. Fixed that.
Also, added --portable-mode to the same line. This will store the local databases and configuration files in the Duplicati share on the data volume of the NAS.
Awesome! I didn’t know about that one. I’ll add that too.
I had a question about your startup script. It appears to need ‘start’ added to the end of it make it run or ‘stop’ to close the service down. ie ‘duplicati start’. But when adding it to update-rc.d you don’t appear to be adding the ‘start’ to it? (my linux coding skills are very rudimentary, so forgive me if im miss-reading it.
My startup script was just a one-liner that starts the service.
The only explanation I have is: I have no idea. Just copied another script and made a few changes to it. After some fiddling, Duplicati.Server.exe started up automatically after rebooting the NAS. In my situation it works, but I have no idea why it works…
If you have anything that can be improved in the script, please share it and explain how the modification makes working it better. Thanks!
The only real difference is the way Duplicati is set up to start automatically.
I don’t know which approach is the best. After searching a bit how to start a program automatically after bootup, I found that a text file in the /etc/init.d folder could do the trick. After some fiddling it indeed appeared to work.
@John’s script seems to do the same, but a lot of (redundant) lines are omitted. My version is based on the scripts that were already in the same folder to start other processes on my NAS.
I presume that there are other ways to autostart Duplicati or convert it to a service. The command sudo systemctl start duplicati seems to work also, but I’ve no idea if this will work on Debian based OS’s or on a ReadyNAS.
Maybe someone with more knowledge of Linux can shine a light on which approach is preferred to autostart Duplicati. I’ll update the #howto article if there is a better way to do it than currently described.
I guess not. @John: I’ve been so free to edit your post, moving “Press Ctrl+X and save the file.” outside of the code block.