Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

How to move bulk Asset in DAM

Avatar

Level 3

I need to move bulk asset from one location to other in DAM .Manually its not possible to move bcoz i am having more than five thousand asset.

Can some body suggest quickly how to achieve this goal in AEM .

3 Replies

Avatar

Level 9

Use the ACS tools AEM fiddler tool, change the script to servlet from header ,

in your servlet, get all the assets from the folder in dam and use the moveAsset method of AssetManager api to move assets from one location to other.

AssetManager ("The Adobe AEM Quickstart and Web Application.")

Eg:
  // To move Asset from /document/somedocument.pdf to /document/legal with name document.pdf
  AssetManager#move("/document/somedocument.pdf", "/document/legal/document.pdf");

Avatar

Level 3

In our case we need to rename thousands of assets. Will the AssetManager API take care of all Collections where these assets have been referenced? If you use the UI manually the collections get updated but if you use the JCR API and session.move() they are not.

Thanks,

Bobby

Avatar

Community Advisor

You can use CRxtoOak, it can also be used to copy data between Oak repositories.
Using the CRX2Oak Migration Tool

Or Vault Remote Copy

Read this for assets migration

Assets Migration Guide