Template:VALT Server Migration: Difference between revisions

From IVS Wiki
Jump to navigation Jump to search
Line 2: Line 2:


=On the Old Server=
=On the Old Server=
''It is beneficial to stop the apache service on the old server to prevent further recording of videos on it''
  '''Note: ''It is beneficial to stop the apache service on the old server to prevent further recording of videos on it'''''


# Type in the following, then press Enter: <pre>sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/</pre>
# Type in the following, then press Enter: <pre>sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/</pre>

Revision as of 16:17, 2 August 2022

Note: Change IP's in the below commands to match the IP's of the new and old server

On the Old Server

 Note: It is beneficial to stop the apache service on the old server to prevent further recording of videos on it
  1. Type in the following, then press Enter:
    sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/
  2. Type in the following, then press Enter:
    mysqldump -uivsadmin -p valt > valt.sql
  3. Enter mysql password
  4. Type in the following, then press Enter:
    scp valt.sql ivsadmin@NewServerIP:/home/ivsadmin/
  5. Enter password for ivsadmin.

On the New Server

  1. Type in the following, then press Enter:
    mysql -uivsadmin -p valt
  2. Type in the password to MySQL.
  3. Type:
    DROP database valt;
  4. Type:
    CREATE database valt;
  5. Type in the following, then press Enter:
    exit 
  6. Type in the following, then press Enter:
    mysql -uivsadmin -p valt < valt.sql
  7. Enter the password for MySQL.
  8. Type in the following, then press Enter:
    mysql -uivsadmin -p valt -e "UPDATE wowza SET address = 'NewServerIP'"
  9. Enter the password for MySQL.

Copy the recordings folder to the new server

Copy the Recordings Folder to a New Server