Selective Assets Movement from Production to Lower environment

Avatar

Avatar

maheshs78145042

Avatar

maheshs78145042

maheshs78145042

11-01-2021

Hi All,

 

I have a requirement where I need to move 2600 assets from Production to lower environment  and after running some test I need to export these assets back to production. These assets are scattered in different sub-folders across dam. Please could you suggest some way to achieve this. I am using Aem 6.4.8.

 

Thanks,

Mahesh

View Entire Topic

Avatar

Avatar

KiranVedantam1992

Avatar

KiranVedantam1992

KiranVedantam1992

11-01-2021

You can do this programmatically to save the effort.

 

1. Create a scheduler that you can run on your production author environment.

2. Create a query to run on the path specified to get your list of assets.

3. With the list of assets create a package programmatically using java code:

Packager Service:

packagerService.createPackage(packageName, groupName, filters, request);

 

Refer to an example here.

Hope this helps.

 

Thanks,

Kiran Vedantam.