Selective Assets Movement from Production to Lower environment | Community
Skip to main content
New Participant
Jan 11, 2021 10:07 AM UTC
Solved

Selective Assets Movement from Production to Lower environment

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Jan 11, 2021 1:54 PM UTC

you can create a package using filter, the list you can extract from prod and create a package in local with the filter of all the assets file, once done upload a package in prod and build. there you will have  the package and upload in lower env, once you are done with lower env changes then again build and upload & install in PROD.

 

Arun Patidar

5 replies

Kiran_Vedantam
New Participant
Jan 11, 2021 3:39 PM UTC

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.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jan 11, 2021 1:54 PM UTC

you can create a package using filter, the list you can extract from prod and create a package in local with the filter of all the assets file, once done upload a package in prod and build. there you will have  the package and upload in lower env, once you are done with lower env changes then again build and upload & install in PROD.

 

Translate
Arun Patidar
BrianKasingli
New Participant
Jan 11, 2021 2:00 PM UTC
Just make sure you press on the "BUILD" button and not "INSTALL" on prod 🙂
Translate
Kunal_Gaba_
New Participant
Jan 11, 2021 10:16 AM UTC

You can use the Asset Ingestor or URL Asset Importer utility of ACS commons package. 

More details can be found here - https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/asset-ingestion/index.html 

Translate