...
- Take backup of artifact repository folder using tar/zip commands on Production FlexDeploy server. For example,
- cd /flexdeploy/artifacts
- tar -czvf /app/backup/flexdeploy_artifacts_prod.tar.gz *
Take backup of plugins folder using tar/zip commands on Production FlexDeploy server. Plugins folder is under server working directory. You can determine working folder by looking at flexagon.fd.application.root system property on server command line. For example,
cd /flexdeploy/application/plugins
tar -czvf /app/backup/flexdeploy_plugins.tar.gz *
- Make sure Test FlexDeploy is now stopped for import process.
- Import data in to target FlexDeploy database. Make sure to run this on Test environment only.
- You must delete FD,FF,FD_ADMIN database users/schemas/databases from Test environment if they already exist before starting import process. If necessary take backup of Test FlexDeploy database prior to starting this process.
- Make sure there are no errors in import process. If there are errors, make corrections appropriately and restart import process.
- At this point, the Test FlexDeploy database should be copy of Production database.
- Copy artifacts zip file to Test FlexDeploy server and extract it in the artifact repository folder. You can determine Artifact Repository folder by looking at flexagon.fd.repository.root system property on server command line. Make sure to run this on Test environment only.
- cd /flexdeploy/artifacts
- tar -czvf /app/backup/flexdeploy_artifacts_test.tar.gz *
- rm -rf *
- tar -xzvf /app/backup/flexdeploy_artifacts_prod.tar.gz
- Now FlexDeploy artifact repository is also copied.
Copy plugins tar/zip file to Test FlexDeploy server and extract it in the plugins directory under working directory. You can determine working folder by looking at flexagon.fd.application.root system property on server command line.
cd /flexdeploy/application/plugins
rm -rf *
tar -xzvf /app/backup/flexdeploy_plugins.tar.gz
- Now FlexDeploy plugins are also copied.
Update Target Database as Necessary
...