Skip to content

Instantly share code, notes, and snippets.

@MonksterFX
Created October 28, 2020 11:27
Show Gist options
  • Save MonksterFX/52e05cfa4dcbd764b4586c785d1a673b to your computer and use it in GitHub Desktop.
Save MonksterFX/52e05cfa4dcbd764b4586c785d1a673b to your computer and use it in GitHub Desktop.
Monog Management Tasks

rename a database:

mongodump --uri="<uri>" --archive="mongodump-docker" --db="docker-local"
mongorestore --uri="<uri>" --archive="mongodump-docker" --nsFrom='docker-local.*' --nsTo='main.*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment