/
Migration Guide

Migration Guide

1 Back up existing data

1.1 MySQL

a) Dump the entire database

Mysqldump u root p1ce1sTern# --all-databases > /tmp/tddp.sql

b) Download the tddp.sql to another computer

1.2 Solr

a) Backup conf files

Solr conf folder is located at /usr/local/solr/collection1/conf, copy the entire folder to a different computer

b) Backup data folder

Solr data is located at /usr/local/solr/collection1/data, copy the entire folder to a different computer

1.3 Geoserver

a) Back up datafolder

Geoserver data folder is located at /opt/geoserver/tddp/data , copy the entire folder and download it to a different computer.

2 Restore data on the new VM

2.1 Software install and Mysql Database restore

a) Run ansible script or follow the "Manual creation of TDDP" from 3 to 4.10

b) Restore mysql database

  • Upload database dump file tddp.sql to the server, for example, /tmp/tddp.sql
  • Login to mysql with root user and then restore

mysql u root p
source /tmp/tddp.sql
c) Continue with steps 4.10.l and 4.10.m

2.2 Restore Geoserver data folder

a) Upload data folder to /tmp

b) Copy /tmp/data to /opt/geoserver/data

c) Go to http://DOMAIN_NAME/geoserver publish layers if neccessary

2.3 Restore Solr index

a) Upload solr data folder and conf folder to /tmp

b) Back up the original solr data and conf folder

c) Copy conf folder from /tmp to /usr/local/solr/collection1

d) Copy data folder from /tmp to /usr/local/solr/collection1

e) Edit /usr/share/tomcat6/webapps/solr/WEB-INF/web.xml, look for the <env-entry>, uncomment it and change the solr home directory to /usr/local/solr

f) Restart tomcat

3 Other configurations

Follow 4.13 in ‘Manual creation of TDDP’