Difference between revisions of "How to restore system from Backup which are made from GUI"
From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with '<br><br> =About= The backup system backs up the MOR database and allows it to be restored at any time. More information about Backups from MOR GUI you can be found [http://wiki.…') |
|||
(5 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
<br><br> | <br><br> | ||
=Workflow= | =Workflow= | ||
1. | 1. Connect to your server over ssh and go to backup folder: | ||
cd /usr/local/mor/backups | cd /usr/local/mor/backups | ||
Untar backup: | |||
tar xvfz '''backupname'''.tar.gz | |||
2. Stop Apache and Asterisk services: | |||
2. Stop services: | |||
/etc/init.d/httpd stop | /etc/init.d/httpd stop | ||
Line 19: | Line 19: | ||
killall -9 asterisk | killall -9 asterisk | ||
3.Data base import: | 3. Data base import: <br> | ||
Import file which you gunziped at first step. | |||
mysql mor < backupname.sql | mysql mor < '''backupname'''.sql | ||
4. Data base update: | 4. Data base update: | ||
Line 33: | Line 33: | ||
svn info /home/mor | grep URL | awk -F"/" '{print $NF}' | svn info /home/mor | grep URL | awk -F"/" '{print $NF}' | ||
Then upgrade | Then upgrade to your version as you checked with previous command: | ||
/usr/src/mor/MOR_VERSION/db/db_update.sh | |||
5. Restart mysql | 5. Restart mysql: | ||
/etc/init.d/mysqld restart | /etc/init.d/mysqld restart | ||
Line 45: | Line 43: | ||
6. Start stoped services: | 6. Start stoped services: | ||
Starting Apache: | |||
/etc/init.d/httpd start | /etc/init.d/httpd start | ||
Starting Asterisk: | |||
/etc/init.d/asterisk start | /etc/init.d/asterisk start |
Latest revision as of 11:13, 7 January 2022
About
The backup system backs up the MOR database and allows it to be restored at any time.
More information about Backups from MOR GUI you can be found here
Workflow
1. Connect to your server over ssh and go to backup folder:
cd /usr/local/mor/backups
Untar backup:
tar xvfz backupname.tar.gz
2. Stop Apache and Asterisk services:
/etc/init.d/httpd stop
killall -9 safe_asterisk
killall -9 asterisk
3. Data base import:
Import file which you gunziped at first step.
mysql mor < backupname.sql
4. Data base update:
Notice:
Your DB version must be the same as GUI.
How to check GUI version type this command:
svn info /home/mor | grep URL | awk -F"/" '{print $NF}'
Then upgrade to your version as you checked with previous command:
/usr/src/mor/MOR_VERSION/db/db_update.sh
5. Restart mysql:
/etc/init.d/mysqld restart
6. Start stoped services:
Starting Apache:
/etc/init.d/httpd start
Starting Asterisk:
/etc/init.d/asterisk start