Kindly refer to the blog. https://blogs.perficient.com/2019/04/16/migrating-aem-content-with-groovy/
Strategy to Migrate Content
Below steps to be carried out for a smooth content migration
- Content Evaluation
- Cleaning up/ Sanitizing the content
- Content Mapping - Organizing the content hierarchy
- Design
- Based on the analysis of existing system, we need to design a solution which has proper
digital asset structure, metadata, tagging, client library, target AEM templates and
components
- Content Migration - There are many ways to do this.
- Manual Migration(When the content in the old system is not structured)
- Automation Migration(When the content in the old system is structured)
- Hybrid Migration(When there is structured and unstructured content in the old system)