Difference between revisions of "Migration to other server"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 14: Line 14:
   tar xvfz file_name.tar.gz
   tar xvfz file_name.tar.gz


Then copy all remaining files like: /etc/asterisk directory (asterisk config files), /var/lib/asterisk/sounds , /var/spool/asterisk/monitor (recordings), /var/spool/asterisk/faxes, any other important files.
Then copy all remaining files like: /etc/asterisk directory (asterisk config files), /home/mor/config, /var/lib/asterisk/sounds , /var/spool/asterisk/monitor (recordings), /var/spool/asterisk/faxes, any other important files.


Thats it, proceed with Migration to other server.
Thats it, proceed with migration to other server.


If everything was smooth , its good idea to [[Change default passwords]].
If everything was smooth , its good idea to [[Change default passwords]].

Revision as of 07:28, 29 April 2009

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/backups/alldatabases.sql
  tar -czvf alldatabases_BACKUP.tar.gz /root/backups/*.sql

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

Download and leave a copy in some safe place like your workstation.

To extract files from archive do:

  tar xvfz file_name.tar.gz

Then copy all remaining files like: /etc/asterisk directory (asterisk config files), /home/mor/config, /var/lib/asterisk/sounds , /var/spool/asterisk/monitor (recordings), /var/spool/asterisk/faxes, any other important files.

Thats it, proceed with migration to other server.

If everything was smooth , its good idea to Change default passwords.