Can run this docker to conenct to a MongoDB and performe a backup. The outputtet data is then uploaded to a s3 bucket.
Mongo dump will dump the collection given and performe a regular dump.
Will run the QUERY env aginst the MongoDB to extract data. The data is exported in JSON format adn then uploaded to s3 bucket
To test run the full docker-comopse to start a Mongodb and a mongo-express. Then load the data into you MongoDB to test
Action to do can be MONGODUMP ore MONGOEXPORT
Host name of mongo
MongoDB user to use
MongoDB Password to use
MongoDB database to use
MongoDB Collections to use
MongoDB Query to run. This is only use then set ACTION to MONGOEXPORT
Your AWS ACCESS KEY ID
Your AWS ACCESS KEY
The bucket to use
If you want to test you can upload the test data into mongo my docker exec into the MongoDB container and run
command: mongoimport -v --file=zips.json -u=root -p=example --db test --collection id --authenticationDatabase admin