Application Export and Import
Starting with EnterMedia 9.0 we have different ways to Export or Backup DAM instances.
Replicating Docker Instance
To fully duplicate an EnterMedia-Docker Instance you need to follow the steps: First you need to create an empty EnterMedia instance in the destination server, using the same parameter options you made to create the instance you are duplicating. We recommend to use the entermedia-docker.sh you have inside your docker scripts area (/media/emsites/my_instance_name/44/).
sudo ./entermedia-docker.sh my_instance_name 44
Once the instance has been created in the destination server you need to stop it (./stop.sh). Now you need to make a copy of your entire instance path to the new server. We recommend to use rsync command. We also recommend to run rsync on all the internal folders while the instance is running, except for the elastic folder.
For the elastic folder you will need to stop the main instance and copy the files. Rsync samples to run on the destination server to pull everything:
#Rsync all folders but elastic rsync -azhi --progress --delete --exclude=elastic mainserver.net:/media/emsites/my_instance_name/ /media/emsites/my_instance_name/ #Stop main instance and then sync the elastic folder only rsync -azhi --progress --delete mainserver.net:/media/emsites/my_instance_name/elastic/ /media/emsites/my_instance_name/elastic/
nce you have the full copy you should be able to start your secondary instance. Keep in mind you will have an exact replica at the moment of the data was copied, if you want to keep a sync copy you can follow this instructions to use the Elasticsearch Snapshot Sync functionality.
We have the option to Export/Import full instance or only configuration settings in the Manager. In your main instance manager, you can select the option to create a Complete or a Config-only Snapshot. Go to your instance url: http://myinstance.net/manager and login as Admin. Select the catalog you want to Export.
Once you have an Snapshot you can Import it in the destination instance you should have up and running at this point. Complete Snapshot will include all configuration and all data tables/modules in the DAM. Keep in mind this Snapshot will not include the media (Originals and Generated files), anyways will include all the assets and their metadata. Config-only Snapshot include all the Fields, Lists and Views definitions, Catalog Settings and the Application Configuration.
You can download the Snapshot zip then upload it into the Manager section in the destination instance or you can directly use the URL in the Import popoup. Both options will require to Reindex the instance, you can go to your Settings | Server and Reindex.