Difference between revisions of "Migration to other server"

From Kolmisoft Wiki
Jump to navigationJump to search
(Migration to other server +++++)
 
(Migration to other server page updated)
Line 1: Line 1:
First make a double backup of your database. Leave one copy in some safe place and second somewhere in server.
Login to Your system via ssh and make a double backup of your databases:
 
  mkdir /root/backups
  cd /root/backups
  mysqldump --all-databases -u'''DATABASEUSER''' -p'''DATABASEPASSWORD''' >/root/alldatabases.sql
  tar -czvf alldatabases_BACKUP.tar.gz /root/backups/*.sql
 
This will make an archived backup with your databases in /root/alldatabases_BACKUP.tar.gz file
 
Leave one copy in some safe place like your workstation and second somewhere in server.
 
To extract files from archive do:
 
  tar xvfz file_name.tar.gz


Then copy required files like /etc/asterisk/h323.conf or /etc/asterisk/sip.conf or whole /etc/asterisk directory itself somewhere in the safe place. Copy all other files which You think can be important or usefull.
Then copy required files like /etc/asterisk/h323.conf or /etc/asterisk/sip.conf or whole /etc/asterisk directory itself somewhere in the safe place. Copy all other files which You think can be important or usefull.


If you are already familiar with MOR, its good idea to [[Change default passwords]].
If you are already familiar with MOR, its good idea to [[Change default passwords]].

Revision as of 20:53, 21 November 2008

Login to Your system via ssh and make a double backup of your databases:

  mkdir /root/backups
  cd /root/backups
  mysqldump --all-databases -uDATABASEUSER -pDATABASEPASSWORD >/root/alldatabases.sql
  tar -czvf alldatabases_BACKUP.tar.gz /root/backups/*.sql

This will make an archived backup with your databases in /root/alldatabases_BACKUP.tar.gz file

Leave one copy in some safe place like your workstation and second somewhere in server.

To extract files from archive do:

  tar xvfz file_name.tar.gz

Then copy required files like /etc/asterisk/h323.conf or /etc/asterisk/sip.conf or whole /etc/asterisk directory itself somewhere in the safe place. Copy all other files which You think can be important or usefull.

If you are already familiar with MOR, its good idea to Change default passwords.