-
Notifications
You must be signed in to change notification settings - Fork 631
Backing Up and Restoring MHN
Jason Trost edited this page Sep 13, 2015
·
2 revisions
Warning, this has not been throughly tested. Do not rely on this until you have tested it yourself. Feedback welcome.
On the MHN Server
sudo su -
supervisorctl stop all
mongodump --db hpfeeds
mongodump --db mnemosyne
tar zcvf mhn-backup.tar.gz dump /opt/mhn/server/mhn.db
supervisorctl start all
Copy mhn-backup.tar.gz
somewhere safe.
Install MHN using the install.sh
mentioned in the main README.
Then:
sudo su -
supervisorctl stop all
tar zxvf mhn-backup.tar.gz
cp mhn.db /opt/mhn/server/mhn.db
for FILE in dump/mnemosyne/*.bson;
do
mongorestore --drop --db mnemosyne "$FILE"
done
for FILE in dump/hpfeeds/*.bson;
do
mongorestore --drop --db hpfeeds "$FILE"
done