Asset Migration between 2 AEM instance using App builder | Community
Skip to main content
Level 4
October 16, 2024
Solved

Asset Migration between 2 AEM instance using App builder

  • October 16, 2024
  • 2 replies
  • 1099 views

Hi,

 

I had a requirement to migrate assets with metadata from one AME instance to another AEM instance. For that we are using app builder. I am facing an issue were my Js code in app builder is not working for large volume of assets and subfolders.I couldn't able to debug/ trace the logs which are added in the JS. My logs are stopped in between. even though the action is running in the background. 

 

When running the app builder code in local, in the localhost session i am getting response was not ready(504) message and the activation logs stopped that time. Need your help how to check the logs and how to rid of this timeout issue.

 

Note: I am using assets http api for the asset migration. Tried adding the limit in app.config.yaml file like below. I have updated the time limit for 5min. But my logs are getting stopped within a minute and getting timeout issue in the result session.

 

asset-migration:
function: actions/asset-migration/index.js
web: 'yes'
runtime: nodejs:18
limits:
timeout: 300000
inputs:
LOG_LEVEL: info
annotations:
require-adobe-auth: true
final: true
 
Thanks in advance!
 
 
Regards,
Bhavani Bharanidharan.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DPrakashRaj

Aem content copy tool: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developer-tools/content-copy

If the associated metadata of assets are attached with the assets then it will be copied as well and if that’s not the case then you can use metadata export feature of assets to migrate the metadata of the assets.

aem assets metadata export and import https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/admin/metadata-import-export#:~:text=Select%20the%20asset%20folder%20that,select%20Include%20assets%20in%20subfolders.

2 replies

DPrakashRaj
Community Advisor
Community Advisor
October 16, 2024

If you are on aem cloud service or AMS you you can use cloud manager content copy feature to achieve this.

Level 4
October 16, 2024

Hi @dprakashraj ,

 

Thanks for your response. Can you please let me know in detail. Is that possible to copy assets and metadata from one AEM instance to another AEM instance?

 

 

 

Regards,

Bhavani Bharanidharan

DPrakashRaj
Community Advisor
DPrakashRajCommunity AdvisorAccepted solution
Community Advisor
October 16, 2024

Aem content copy tool: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developer-tools/content-copy

If the associated metadata of assets are attached with the assets then it will be copied as well and if that’s not the case then you can use metadata export feature of assets to migrate the metadata of the assets.

aem assets metadata export and import https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/admin/metadata-import-export#:~:text=Select%20the%20asset%20folder%20that,select%20Include%20assets%20in%20subfolders.

kautuk_sahni
Community Manager
Community Manager
November 26, 2024

@bhavanibharani Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni