Last active
February 26, 2024 02:57
-
-
Save rodrigobertin/5cc3df9593d8218919ce8443c261b2f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DB=base | |
export PASS=pass | |
export USER=user | |
docker exec -ti mongo mongodump --username=$USER --password=$PASS --authenticationDatabase=admin --db=$DB --out /tmp/backups |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment