Template:VALT Server Migration: Difference between revisions
Jump to navigation
Jump to search
IVSWikiBlue (talk | contribs) No edit summary |
IVSWikiBlue (talk | contribs) |
||
| Line 4: | Line 4: | ||
=On the Old Server= | =On the Old Server= | ||
<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> | |||
# Disable the Apache web service on the server to prevent further recordings | # Disable the Apache web service on the server to prevent further recordings | ||
#: <pre>sudo service apache2 stop</pre> | #: <div class="floating_card"><pre>sudo service apache2 stop</pre></div> | ||
# Disable the restart Wowza cronjob: | # Disable the restart Wowza cronjob: | ||
#: - Type in the following command: | #: - Type in the following command: | ||
#: <pre>crontab -e</pre> | #: <div class="floating_card"><pre>crontab -e</pre></div><br> | ||
#: - | #: - Press {{Keyboard | key = 1}} to continue<br> | ||
#:{{img | file = Edit_Cronjobs_Command.png}}<br> | #:{{img | file = Edit_Cronjobs_Command.png}}<br> | ||
#:<br> - Comment out the following job: <pre>0 3 * * * /usr/local/valt/bin/restartwowza</pre> | #:<br> - Comment out the following job: <div class="floating_card"><pre>0 3 * * * /usr/local/valt/bin/restartwowza</pre></div><br> | ||
#:{{img | file = Disable_Restart_Wowza_Cronjob.png}} | #:{{img | file = Disable_Restart_Wowza_Cronjob.png}} | ||
# Type in the following, then press Enter: <pre>sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/</pre> | # Type in the following, then press {{Keyboard | key = Enter}} Enter: <div class="floating_card"><pre>sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/</pre></div><br> | ||
# Type in the following, then press Enter: <pre>mysqldump -uivsadmin -p valt > | # Type in the following, then press {{Keyboard | key = Enter}} Enter: <div class="floating_card"><pre>mysqldump -uivsadmin -p valt</pre></div><br> | ||
#Enter mysql password | #Enter in the mysql password | ||
#:{{img | file = VALT_Migration_MySQLdump.png}} | #:{{img | file = VALT_Migration_MySQLdump.png}} | ||
# Type in the following, then press Enter: <pre>scp valt.sql ivsadmin@NewServerIP:/home/ivsadmin/</pre> | # Type in the following, then press Enter: <div class="floating_card"><pre>scp valt.sql ivsadmin@NewServerIP:/home/ivsadmin/</pre></div><br> | ||
# Enter password for ivsadmin. | # Enter password for '''ivsadmin'''. | ||
#:{{img | file = SCP_MySQLdump.png}} | #:{{img | file = SCP_MySQLdump.png}} | ||
Revision as of 21:00, 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
- Disable the Apache web service on the server to prevent further recordings
sudo service apache2 stop
- Disable the restart Wowza cronjob:
- Type in the following, then press Enter Enter:
sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/
- Type in the following, then press Enter Enter:
mysqldump -uivsadmin -p valt
- Enter in the mysql password
- Type in the following, then press Enter:
scp valt.sql ivsadmin@NewServerIP:/home/ivsadmin/
- Enter password for ivsadmin.
On the New Server
- Type in the following, then press Enter:
mysql -uivsadmin -p valt
- Type in the password to MySQL.
- Type:
DROP database valt;
- Type:
CREATE database valt;
- Type in the following, then press Enter:
exit
- Type in the following, then press Enter:
mysql -uivsadmin -p valt < valt.sql
- Enter the password for MySQL.
- Type in the following, then press Enter:
mysql -uivsadmin -p valt -e "UPDATE wowza SET address = 'NewServerIP'"
- Enter the password for MySQL.








