Skip to content

Instantly share code, notes, and snippets.

Francesco Saverio Cannizzaro fcannizzaro

  • Palermo , Italy
Block or report user

Report or block fcannizzaro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@saggiyogesh
saggiyogesh / mongo_dump_restore.md
Last active Nov 30, 2019
Mongodb dump and restore from mlab
View mongo_dump_restore.md
  • install mongodb on local machine (mongodump & mongorestore) commands are required.
  • command dumping

mongodump -h xxx11.mlab.com:11 -u user -p password --authenticationDatabase release-db -d release-db -o /home/dumps

**Options** `-h`: mlab host:port, `-u`: db user, `-p`: db user password, `--authenticationDatabase` `-d`: mlab dbname, `-o`: path to store backupfiles
  • restore command, to restore locally

    mongorestore --db dname /home/dumps

    Otherwise to restore in mlab, create a new db and replace the options

You can’t perform that action at this time.