These scripts are called usually with cron with something like the following
0 0 * * * /root/duplicacy.sh
cd / duplicacy init <hostname> sftp://duplicacy@gauntnas.home.johnhgaunt.com//mnt/data-pool/backups/duplicacy/data duplicacy set -key ssh_password -value <ssh password>
i:etc/.* i:opt/$ i:opt/bitwarden/.*
i:etc/version i:data/.* i:root/.*
i:etc/.* e:root/\.cache i:root/.* i:var/$ i:var/lib/$ i:var/lib/plexmediaserver/.*
i:cf/.*