Create mongodbs backup for apps deployed product?

I need to click button and download file with browser
how to database backup for apps deployed from docker
backup docker exec -it mongodb mongodump appName
Was the dump inside the docker container? How do I get the files on browser download?

You can create a script to do the backup and send it to S3 or another storage. But try to download from a docker container is not a good choice in my opinion.

@raragao You should show me sample please

https://dev.to/cloudtech/database-backup-scripts-for-mongodb-with-amazon-s3-d08

@raragao Thank you for sharing