Backup Postman Configuration to file - environment and settings
I found this answer for my question - although it didn't answer the original question over there.
Basically you can create a .json export file like this:
Settings -> Data tab -> Export Data -> Download
Download all data (including collections, globals, etc.)
Export using the Postman application:
Settings -> Data tab -> Export Data -> Download
Download collections
Download each collection from the Postman application: Click on the triple dots and select Export
Backup integrations
You can set up an auto integration to back up your collections (to Github, etc.):
Login into the website and select your workspace, then go under the integrations
tab and add API integration.
If you want to set up integrations to other software (e.g. Bitbucket) that isn't available, you can achieve by using the custom webhook. For more details, you can read this official blog post.
The related official blog post for backup options.