Then configure how you want the assets to be reprocessed. You can change the processing profile to use when processing the assets and select whether or not to run the post-processing workflows.
This manual process works fairly well if you have a relatively small number of assets (> 100) and when the assets are in a few folders. However for larger use cases, such as reprocessing following a migration or reprocessing a large number of assets with a new processing profile.
You could use folder-level reprocessing, however this will overwrite the renditions and metadata applied on all the assets within a folder including custom metadata and renditions.
Similarly, you could find and select the assets, however this is tedious and because of the overhead of the reprocessing job, running multiple small reprocessing requests is orders of magnitude slower than fewer, larger reprocessing requests.
As an alternative, I created the following script to run reprocessing requests in bulk. To use the script, create a file containing the paths to the assets you want to reprocess with new line separators (and a newline at the end), then run the command:
# Default Profile: ./reprocess.sh [aem-host] [asset-file]
/bin/bash ./reprocess.sh https://author-p123-e456-cm.adobeaemcloud.com assets.txt
# Custom Profile: ./reprocess.sh [aem-host] [asset-file] <profile-name>
/bin/bash ./reprocess.sh https://author-p123-e456-cm.adobeaemcloud.com assets.txt test-profile
The script will then prompt you for a username and password to connect to the AEM as a Cloud Service instance, confirm what it is planning on doing and display the results.
You can download the script from this gist:
This script is provided for your convenience and in compliance with the terms of the MIT license is provided “As is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose nor is it officially supported.
All that being said, if you find any issues, leave a comment or contact me.