How do I take backup of Appsmith database (MongoDB)?

This question is asked by one of our community members on the Intercom:

We created some apps. We want to take automated backups of the apps created. Checking the MongoDB there is no database created. Where are the apps stored? We want to run a crontab job to backup to another location.

The information and data can be found under the stacks/data directory.