If you’re going to use Cockpit default db (SQLite), you can just backup storage
and config
folders.
Btw, it seems so many questions in a single thread, and I think some of your questions are already answered in the forum.
Or maybe you can find something useful from these below links.
The unofficial documentation of Cockpit