Back Up and Replicate Zotero Setup

I am currently using Zotero on Ubuntu, along with several plugins and custom configurations. My Zotero library is synced with a WebDAV service. I want to back up my entire Zotero setup, including all plugins, configurations, and settings, to the cloud so that I can easily replicate it on a new machine quickly.

What would be the best way to do this? Is it okay to do something like keeping the dotfiles in a GitHub repository? Are there specific files or directories I should include in the backup to ensure everything is restored correctly?