Template:VALT Server Migration: Difference between revisions

From IVS Wiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
<div class="floating_card"><font color="orange">'''Note: ''It is beneficial to stop the apache service on the old server to prevent further recording of videos on it'''''</font> </div>
<div class="floating_card"><font color="orange">'''Note: ''It is beneficial to stop the apache service on the old server to prevent further recording of videos on it'''''</font> </div>
<br>
<br>
<div class="section">
# Disable the Apache web service on the server to prevent further recordings
# Disable the Apache web service on the server to prevent further recordings
#: <div class="floating_card"><pre>sudo service apache2 stop</pre></div>
#: <code>sudo service apache2 stop</code>
# Disable the restart Wowza cronjob:
# Disable the restart Wowza cronjob:
#: - Type in the following command:
#: - Type in the following command:
#: <div class="floating_card"><pre>crontab -e</pre></div><br>
#: <code>crontab -e</code>
#: - Press {{Keyboard | key = 1}} to continue<br>
#: - Press {{Keyboard | key = 1}} to continue
</div>
 
 
#:{{img | file = Edit_Cronjobs_Command.png}}<br>
#:{{img | file = Edit_Cronjobs_Command.png}}<br>
#:<br> - Comment out the following job: <div class="floating_card"><pre>0 3 * * * /usr/local/valt/bin/restartwowza</pre></div><br>
#:<br> - Comment out the following job: <div class="floating_card"><pre>0 3 * * * /usr/local/valt/bin/restartwowza</pre></div><br>

Revision as of 21:11, 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. Disable the Apache web service on the server to prevent further recordings
    sudo service apache2 stop
  2. Disable the restart Wowza cronjob:
    - Type in the following command:
    crontab -e
    - Press 1 to continue




  1. - Comment out the following job:
    0 3 * * * /usr/local/valt/bin/restartwowza

  2. Type in the following, then press Enter Enter:
    sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/

  3. Type in the following, then press Enter Enter:
    mysqldump -uivsadmin -p valt

  4. Enter in the mysql password
  5. Type in the following, then press Enter:
    scp valt.sql ivsadmin@NewServerIP:/home/ivsadmin/

  6. 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