Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 1023 Bytes

DATABASE-MIGRATION.md

File metadata and controls

17 lines (17 loc) · 1023 Bytes

Migrate a local Meteor 1.6 🍅cards database to Meteor 1.8

  1. Make sure that you meet following requirements:
    • You've selected the staging branch git checkout staging
    • Your staging branch is up to date git pull
    • Meteor is running
    • Your terminal is inside the repository cards folder
  2. Move to your staging branch git checkout staging
  3. Install the mongodb-tools: sudo apt-get install mongo-tools
  4. Set your repository to the latest Meteor 1.6 version git checkout 29db2ca369d25fa2f9dab2d964a3f131eeba1aa4
  5. Dump your current Meteor 1.6 database mongodump -h "localhost" --port "3001" -d "meteor" -o ~/cardsBackup/
    • Make sure that mongodump created the folder and files
  6. Stop meteor
  7. Reset the meteor configuration meteor reset
  8. Move back to the latest staging branch version git checkout staging
  9. Update your node packages meteor npm install
  10. Start meteor
  11. Restore your backup mongorestore --drop -h "localhost" --port "3001" -d "meteor" ~/cardsBackup/meteor