Difference between revisions of "Template:VALT Server Migration"
IVSWikiBlue (talk | contribs) (→Copy the recordings folder to the new server) |
IVSWikiBlue (talk | contribs) (→On the Old Server) |
||
Line 4: | Line 4: | ||
'''Note: ''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''''' | ||
+ | # Disable the restart Wowza cronjob: | ||
+ | #: Type in the following command: | ||
+ | #: <pre>crontab -e</pre> | ||
+ | #:{{img | file = Edit_Cronjobs_Command.png}} | ||
+ | #: Press 1 | ||
+ | #: Comment out the following job: <pre>0 3 * * * /usr/local/valt/bin/restartwowza</pre> | ||
# 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> | ||
# Type in the following, then press Enter: <pre>mysqldump -uivsadmin -p valt > valt.sql</pre> | # Type in the following, then press Enter: <pre>mysqldump -uivsadmin -p valt > valt.sql</pre> |
Revision as of 11:01, 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 restart Wowza cronjob:
- Type in the following, then press Enter:
sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/
- Type in the following, then press Enter:
mysqldump -uivsadmin -p valt > valt.sql
- Enter 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.