Duplicity backup configuration

I am curious how the Duplicity backup configuration is done.
I poked around a bit on the box but didn’t find obvious config files.

I would like to know which directories are backed op. And maybe if I can exclude some directories, like all the Spam folders.

basically it’s my understanding that everything in

/home/user-data

is backed up.

Scripts are in /root/mailinabox/management/
script is backup.py

Thanks for your reply.
I found where the backup actually runs on line 313:

Then I read the Duplicity manual and I would need to add additional --exclude options there, or maybe --exclude-filelist or --exclude-globbing-filelist.

That would imply changing lines in a file that is provided by the Mailinabox project.
I’m not afraid of doing that, it’s just a hassle. I’ll put it on my todo list and I’ll probably do it with Ansible.

Those lines haven’t changed in the last 9 years so the chance they’ll change upstream is very low. Which makes them a good candidate for my Ansible shenanigans. :smiley: