[AEM6.5] bulk copy pages from one location to another location
Hi Team,
we have page and their unique UUID attatched to page and
I have a requirement where I have to do a bulk copy of page from one path to another path and also update uuid [since if we copy the page from one node to another it will copy the same uuid].
So current I have only magazine_us page is available which we have provided in source path [csc, or excel] and we want to copy it to different different locale and once we copied we need to update the uuid. like
| Source | Destination |
| /content/my-project/en/us/magazine_us | /content/my-project/ru/ru/magazine_ru |
| /content/my-project/en/us/magazine_us | /content/my-project/es/es/magazine_es |
| /content/my-project/en/us/magazine_us | /content/my-project/de/de/magazine_de |
| /content/my-project/en/us/magazine_us | /content/my-project/fr/fr/magazine_fr |
| /content/my-project/en/us/magazine_us | /content/my-project/ko/kr/magazine_ko |
And going forward we have to provide publish/unpublish functionality to it.
How can I achieve this tool.
I have think of two ways to do
1- Write a servlet which will read the xlsx and copy node to destination path
2- Use MCP like : https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/mcp/impl/processes/renovator/Renovator.java
Can anyone please suggest me the best way to do it. or any sample code to refer it
Thanks
@kautuk_sahni @lukasz-m @arunpatidar @kiran51