Mongodb

Backup

/usr/bin/mongodump -h $HOST -d $DBNAME -o $DEST --password $PASSWORD --username $USERNAME

Restore

mongorestore --host {db.example.com} --db {my-db} {db-name}/

Reference:

  1. mongodump
  2. mongorestore
  3. MongoDB backup to and restore from S3