...
Localtabgroup | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Migrating encrypted data
Anchor | ||||
---|---|---|---|---|
|
To migrate encrypted data in WSO2 DAS 3.1.0 when you upgrade to WSO2 3.2.0, follow the steps below:
- Download migration resources from here.
- Unzip the migration resources you downloaded and copy the
org.wso2.das.migration-3.2.0.jar
to the<DAS-3.2.0_HOME>/repository/components/dropins
directory. - Copy the
.jks
files from the<DAS-3.1.0_HOME>/repository/resources/security
directory and place them in the<DAS-3.2.0_HOME>/repository/resources/security
directory. - Copy the
.db
files from the<DAS-3.1.0_HOME>/repository/database
directory and place them in the<DAS-3.2.0_HOME>/repository/database
directory. - If you have created tenants in the WSO2 DAS 3.1.0 environment and if there are any tenant resources in the
<DAS-3.1.0_HOME>/repository/tenants
directory, copy that content to the<DAS-3.2.0_HOME>/repository/tenants
directory. - If you have created any secondary user stores in the WSO2 DAS 3.1.0 environment, copy them from the
<DAS-3.1.0_HOME>/repository/deployment/server/userstores
directory and place them in the<DAS-3.2.0_HOME>/repository/deployment/server/userstores
directory. - If you have created any event receivers and event publishers in the WSO2 DAS 3.1.0 environment, do the following:
- To migrate the event receiver configurations, copy the contents in the
<DAS-3.1.0_HOME>/repository/deployment/server/eventreceivers
directory to the<DAS-3.2.0_HOME>/repository/deployment/server/eventreceivers
directory. - To migrate the event publisher configurations, copy the contents in the
<DAS-3.1.0_HOME>/repository/deployment/server/eventpublishers
directory to the<DAS-3.2.0_HOME>/repository/deployment/server/eventpublishers
directory.
- To migrate the event receiver configurations, copy the contents in the
- Start WSO2 DAS 3.2.0 with the following commend to perform data migration for encrypted data.
- On Windows:
wso2server.bat -Dmigrate
On Linux/Mac OS:
sh wso2server.sh -Dmigrate
- On Windows:
- Once the migration is successfully completed, stop the server and start it again with one of the following commands.
- On Windows:
wso2server.bat
On Linux/Mac OS:
sh wso2server.sh
- On Windows:
Migrating artifacts
All artifacts can be migrated from DAS 3.1.0 to DAS 3.2.0 via Composite Application Archive (CAR) files. For detailed instructions package artifacts as C-App archives, see Packaging Artifacts as C-App Archive.
You should manually deploy Composite Application Archive (CAR) files that you have in DAS 3.1.0 to DAS 3.2.0.
To migrate deployment artifacts:
Copy the
<DAS_HOME>/repository/deployment/server
directory from DAS 3.1.0 to DAS 3.2.0.If multi-tenancy is used, copy the
<DAS_HOME>/repository/tenants
directory from DAS 3.1.0 to DAS 3.2.0.Tip You may have already copied the
tenants
directory when migrating encrypted data.
Testing the upgrade
Verify that all the required scenarios are working as expected. This confirms that the upgrade is successful.