Skip to content

Instantly share code, notes, and snippets.

@elfeffe
Created February 11, 2020 04:05
Show Gist options
  • Select an option

  • Save elfeffe/ee5dbd2b19e1f5f2a3760026b7cbef10 to your computer and use it in GitHub Desktop.

Select an option

Save elfeffe/ee5dbd2b19e1f5f2a3760026b7cbef10 to your computer and use it in GitHub Desktop.

Revisions

  1. elfeffe created this gist Feb 11, 2020.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    mongodump -v --archive --uri="mongodb://localhost:27017/DB_NAME" | mongorestore -v --archive -d DB_NAME --nsFrom DB_NAME.* --nsTo DB_NAME.* --uri="mongodb://DEST_IP:27017/DB_NAME"