It may be necessary to duplicate an environment, for example, to put into production a test environment that has passed validation. Here are the steps to follow:
Hosting is increasingly based on virtual machines. Server duplication becomes a simple operation.
DNS renaming is detailed in the section below: ModifyingURL in the back office
Data duplication can be useful for copying production data to a test environment.
The data managed by CMS is stored in a JCR database. Several implementations are possible:
To find out how your data is stored, go to CMS http://cms.xxxxxx.fr/_admin administration (use administration login, default: admin/admin), in the Repository section:
If the "Store data by default from Jackrabbit " checkbox is checked, then your implementation is on file system only.
If this checkbox is not checked, most data is stored in the database indicated in the Persistence Jackrabbit / Data source field.
The location of your data files is defined in the environment variable AMETYS_CMS_HOME.
Data stored in databases is defined in your configuration, each time you encounter a data source.
On the source server
On the target server
Retrieve the source server archive
Follow restoration steps: 4. Operation
Also make a backup on the target server.
Do not restart Tomcat at the end of the restore.
Retrieve the config folder from the old data and replace it in $AMETYS_CMS_HOME/config
Do the same with the $AMETYS_CMS_HOME/data/internal-db
During data recovery, we did not recover the config folder containing the application's entire configuration. You may need it in whole or in part.
Here are the different files that can be found in this folder:
This list is not exhaustive.
To avoid disk space problems, don't forget to delete obsolete data.