I decided to dig in the direction of the backup collections for the crown. Is it possible to execute the console command from under the nodes?
mongoexport -d database -c collection -o collection.json --jsonArray I put npm node-schedule with which I want to back up collections on certain days of the month.