To move a DualShield server to a new machine that runs on a different OS from the old machine, you basically need to install a fresh new DualShield server on the new machine, then transfer the DualShield database and some other files from the old machine to the new machine. Below is the guide in steps.
...
1. Stop the DualShield service
2. If the DualShield uses a local mySQL MySQL database, then export the DaulShield database
Code Block | ||
---|---|---|
| ||
cd C:\Program Files\Deepnet DualShield\mysql\bin\ mysqldump -uroot -p --add-drop-database --databases dualshield > c:\dualshileddualshield.sql |
On the new Machine:
3. Install the latest DualShield server with EXACTLY the same FQDN as the old machine
4. Stop the DualShield service
5. If the DualShield uses a local mySQL MySQL database, then copy the database file "dualshield.sql" from the old machine to the new machine, and import it into the database
Code Block |
---|
cd C:\Program Files\Deepnet 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 < c:\dasdualshield.sql |
6. Copy the following files from the old machine:
...
C:\Program Files\Deepnet DualShield\config\appsso-metadata.xml
C:\Program Files\Deepnet DualShield\config\dbencdnenc.jks
C:\Program Files\Deepnet DualShield\config\storeconf.xml
C:\Program Files\Deepnet DualShield\config\server-uuid
C:\Program Files\Deepnet DualShield\config\location.properties
to the new machine in the same folders and overwrite those files on the new machine.
7. Copy the "cacerts" file in the folder below from the old machine:,
C:\Program Files\Deepnet DualShield\jre\lib\security\cacerts
to the new machine in a folder, say: C:\oldcacertstemp
8. Execute the following commands in the Windows console on the new machine:
Code Block |
---|
cd C:\Program Files\Deepnet DualShield\jre\lib\security\ ..\..\bin\keytool -importkeystore -srckeystore c:\temp\oldcacertscacerts -srcstorepass changeit -destkeystore cacerts -dest storepass -deststorepass changeit -srcalias dualultimateca -noprompt ..\..\bin\keytool -importkeystore -srckeystore c:\temp\cacerts -srcstorepass changeit -destkeystore cacerts -deststorepass changeit -srcalias dualultimatecadeepnetownca -noprompt |
9. Start the DualShield service on the new machine
...
12. Log onto the DualShield Console on the new machine, remove the license key and re-import the license key.