Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. Install the latest DualShield server with EXACTLY the same FQDN as the one on the  old machine - Please refer to Installation on Linux Console . However, specify the name of the database connected to the original DualShield server (usually 'dualshield') and DO NOT create a new database when prompted Please note if you are using an external SQL database such as MS SQL but you are not planning on moving to a new SQL server then make sure you use a different name when you get to the section on creating a new database, to avoid corruption to the current live database.

2. Stop the DualShield service 

...

Expand
titleImportant information for Ubuntu users

You will need to install libncurses5 dependency, before continuing.

Code Block
sudo apt-get install libncurses5

For Ubuntu 24.04: (You may need to sudo su first)

Code Block
sudo echo "deb http://security.ubuntu.com/ubuntu focal-security main universe" | >sudo tee /etc/apt/sources.list.d/ubuntu-focal-sources.list
sudo apt-get update
sudo apt-get install libncurses5



...

Expand
titlePlease click here if using the built in MySQL database, packaged with DualShield.

If the DualShield uses a local MySQL database, then export the DaulShield database 

Code Block
languagepowershell
    cd C:\Program Files\Deepnet DualShield\mysql\bin\
    mysqldump -uroot -p dualshield > c:\dualshield.sql

Copy the database file "dualshield.sql" from the Windows machine to the home folder of the Linux machine, and import it into the database

Run the following commands to import the dualshield.sql file...  (for the last command replace [username] with the account name used to log into Linux CLI

Code Block
    cd /opt/dualshield/mysql/bin/
    ./mysql -uroot -p -e "drop database dualshield"
	./mysql -uroot -p -e "create database dualshield DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"     
	./mysql -uroot -p dualshield < /home/[username]/dualshield.sql


Expand
titlePlease click here if using an external database such as MS SQL

Backup your original database and restore to the new one.  https://learn.microsoft.com/en-us/sql/relational-databases/backup-restore/quickstart-backup-restore-database?view=sql-server-ver16&tabs=ssms


4. Copy the following files from the Windows machine to the home folder of the Linux machine:

...