Skip to content

Instantly share code, notes, and snippets.

@rodrigobertin
Last active February 26, 2024 02:57
Show Gist options
  • Save rodrigobertin/5cc3df9593d8218919ce8443c261b2f4 to your computer and use it in GitHub Desktop.
Save rodrigobertin/5cc3df9593d8218919ce8443c261b2f4 to your computer and use it in GitHub Desktop.
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