Restore selected content and configuration paths after a Cloud Manager Copy Content Activity in AEM as a Cloud Service
This article explains how you can restore selected content or configuration paths in Adobe Experience Manager (AEM) as a Cloud Service after a Cloud Manager Copy Content Activity overwrites those paths. Use this approach when a full backup isn’t available and the built-in Restore Content option would restore all content instead of only the affected paths. To fix this, identify the affected paths, obtain a clean version from an available package or environment, create and validate a package containing only those paths, install it in the target environment, and verify the restored content.
Description description
Environment
- Adobe Experience Manager as a Cloud Service
- Cloud Manager Copy Content Activity
- Source and target environments such as Production, Stage, Test, and Development
Issue/Symptoms
- Specific content or configuration paths were overwritten during a Cloud Manager Copy Content Activity.
- No backup was taken before the content copy operation.
- The built-in Restore Content option would restore all content or sites in scope instead of only the affected paths.
- Only selected content or configuration paths need to be restored.
Cause
A Cloud Manager Copy Content Activity overwrote environment-level configuration and content at specific paths. Selective restoration requires packaging and restoring only the affected paths from a clean environment or an available backup package.
Resolution resolution
Follow the steps below to resolve the issue:
- Identify the affected content or configuration paths that need to be restored, such as
/content/example-siteor/conf/example-config. - Check for previously exported packages or backups containing the affected paths. If you find one, prepare it for reinstallation.
- If no backup exists, check whether a clean version of the required content is available in another environment, such as Stage or Test.
- In the source environment, use Package Manager to create a content package containing only the necessary path filters for restoration.
- Download the package from the source environment and validate that it contains only the intended paths.
- Upload and install the package in the target environment. If the package is large, such as a package containing DAM assets, split it into smaller packages and install them in batches to reduce performance impact.
- After installation, verify that the affected paths have been restored to the desired state and test the environment to confirm that only the intended changes were reverted.