Template:VALT Server Migration

From IVS Wiki
Revision as of 10:49, 4 December 2020 by IVSWikiBlue (talk | contribs) (Copy the recordings folder to the new server)
Jump to: navigation, search

Note: Change IP's in the below commands to match the IP's of the new and 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

  1. Type in the following, then press Enter:
    sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/
  2. Type in the following, then press Enter (Since Ubuntu 18.04 ivsadmin is the MySQL login user):
    mysqldump -uroot -p v3 > v3.sql
  3. Enter mysql password
    ValtMigrationMysqlDump.jpg
  4. Type in the following, then press Enter:
    scp v3.sql ivsadmin@NewServerIP:/home/ivsadmin/
  5. Enter password for ivsadmin.
    ValtMigrationScpCommand.jpg

On the New Server

  1. Type in the following, then press Enter (Since Ubuntu 18.04 ivsadmin is the MySQL login user):
    mysql -uroot -p v3
  2. Type in the password to MySQL.
    ValtMigrationMysqlLogin.jpg
  3. Type:
    DROP database v3;
    ValtMigrationDropDb.jpg
  4. Type:
    CREATE database v3;
    ValtMigrationCreateDb.jpg
  5. Type in the following, then press Enter:
    exit 
  6. Type in the following, then press Enter (Since Ubuntu 18.04 ivsadmin is the MySQL login user):
    mysql -uroot -p v3 < v3.sql
  7. Enter the password for MySQL.
    ValtMigrationMysqlV3.jpg
  8. Type in the following, then press Enter (Since Ubuntu 18.04 ivsadmin is the MySQL login user):
    mysql -uroot -p v3 -e "UPDATE wowza SET address = 'NewServerIP'"
  9. Enter the password for MySQL.
    ValtMigrationSetWowzaIp.jpg

Copy the recordings folder to the new server

  1. Type in the following, then press Enter (On Older Servers the Video Directory is dustin_recordings):
    sudo scp -r ivsadmin@OldServerIP:/usr/local/WowzaStreamingEngine/content/valt_recordings/ /usr/local/WowzaStreamingEngine/content/
  2. Type in the ivsadmin password.
  3. After running the command above, you will want to select Yes to continue connecting to the server.
    ValtMigrationScpToNewServer.jpg
  4. Let the files transfer to the new server. When they are complete, the window should look like the following example:
    ValtMigrationFinishedTransfer.jpg
    Note: Depending on the size of the system it can take quite some time for all the files to transfer.