An easy way to export documents associated with an ID from multiple collections. Surgically.
docker build -t tehkapa/mongoexportsurgeon .
docker run --name mongoes -it \
-e DBNAME=database \
-e USERNAME=user \
-e PASSWORD=password \
-e HOST=mongo-server \
-e AWSACCESSKEYID=AKxxxxxx \
-e AWSSECRETACCESSKEY=bHxxxxxxxx \
-e BUCKET=my-bucket \
tehkapa/mongoexportsurgeon
or using .env file
docker run --name mongoes --env-file .env -it tehkapa/mongoexportsurgeon
You can pass organizationID on run command with --env ID=ac12cd3ef45 --env KEY=organization