Running Duplicati on startup on Freenas / FreeBSD

Hey!
Documentation is never wrong, so I’m quite confident a number of people would be helped by having a #howto describing a good way to install Duplicati on FreeNAS/FreeBSD – I suppose that the process is more or less identical.
I’m writing a script to automate the installation process on FreeNAS in an iocage jail while separating the Duplicati config from the jail itself, so that it’s easy to reinstall the jail when necessary.
Best regards,
Ted