mongodump --host $HOST --port 27017 --username $USER --db $DB_NAME --password $PASSWORD --out $BACKUPROOT --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-1
https://www.tutorialspoint.com/mongodb/mongodb_create_backup.htm#:~:text=To%20create%20backup%20of%20database,backup%20of%20your%20remote%20server.
https://stackoverflow.com/questions/38744131/server-returned-error-on-sasl-authentication-step-authentication-failed
db.createUser({
user: '<user>',
pwd: '<password>',
roles: ["userAdminAnyDatabase",
"dbAdminAnyDatabase",
"readWriteAnyDatabase"]
})
https://zellwk.com/blog/install-mongodb/
https://medium.com/@dilipkumar/standalone-mongodb-on-kubernetes-cluster-19e7b5896b27
https://godoc.org/go.mongodb.org/mongo-driver/mongo#example-Connect–Direct
mongotop 10
https://severalnines.com/database-blog/how-go-production-mongodb-top-ten-tips
https://stackoverflow.com/questions/12191311/mongodb-avoid-duplicate-entries/12191674
https://www.digitalocean.com/community/tutorials/how-to-use-go-with-mongodb-using-the-mongodb-go-driver-pt
https://medium.com/dev-howto/how-to-use-go-with-mongodb-using-official-mongodb-go-driver-76c1628dae1e
Full Stack Developer, DevOps, CSM e LKU. coutoarmando@gmail.com