codecombat/scripts/vagrant/core/backupMongo.sh
2016-05-18 09:48:13 +07:00

8 lines
179 B
Bash

#!/bin/bash
mkdir -p /vagrant/temp
cd /vagrant/temp
rm -fr backup
mkdir backup
cd backup
mongodump -db coco --collection users
mongodump -db coco --collection earnedachievements