Skip to content

Instantly share code, notes, and snippets.

@wallace
Created July 10, 2013 15:59
Show Gist options
  • Save wallace/5967521 to your computer and use it in GitHub Desktop.
Save wallace/5967521 to your computer and use it in GitHub Desktop.
# rename the extracted dump files to be in your local database name
$ mv dump/exported_database_name/ dump/my_local_database_name
# restore using the appropriate port. assume that foreman is started and running
$ mongorestore dump --port 28018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment