You can configure the location of the MangoNoSQL Database in the env.properties file. You can also configure the backup locations under the various backup settings on the System Settings page.
Here is some information on the env.properties file https://help.infiniteautomation.com/installation-configuration#env-properties
These are some of the settings you might be interested in:
#Set the base path for where the NoSQL data will be stored, relative to $MA_HOME (can also be set to an absolute path) db.nosql.location=databases # Default database settings # The path in the db.url is relative to MA_HOME, or can be absolute db.type=h2 db.url=jdbc:h2:databases/mah2