The Content Copy Tool content-copy
The content copy tool enables users to copy mutable content On-demand from their production environments on AEM as a Cloud Service to lower environments for testing purposes.
Introduction introduction
Current, real data is valuable for testing, validation, and user-acceptance purposes. The content copy tool lets you copy content from a production AEM as a Cloud Service environment to a staging, development, or Rapid Development Environment (RDE) environment for such testing.
A content set defines the content to copy. A content set consists of a list of JCR paths. These paths contain the mutable content to be copied from a source authoring service environment to a target authoring service environment, all within the same Cloud Manager program. The following paths are permitted in a content set:
/content
/conf/**/settings/wcm
/conf/**/settings/dam/cfm/models
/conf/**/settings/graphql/persistentQueries
/etc/clientlibs/fd/themes
When copying content, the source environment is the source of truth.
- If the source and destination paths match, content from the source overwrites modified content in the destination environment.
- If the paths are different, content from the source is merged with the content in the destination.
Permissions permissions
To use the content copy tool, certain permissions are required in both the source and target environments.
For more details on permissions and how to set them, see AEM as a Cloud Service Team and Product Profiles.
Create a content set create-content-set
Before any content can be copied, a content set must be defined. After it is defined, content sets can be reused to copy content. Follow these steps so you can create a content set.
-
Log on to Cloud Manager at my.cloudmanager.adobe.com and select the appropriate organization and program.
-
Using the side navigation panel, navigate to the Content Sets tab from the Overview page.
-
At the top-right of the screen, click Add Content Set.
-
On the Details tab of the wizard, provide a name and description for the content set and select Continue.
-
On the Content Paths tab of the wizard, specify the paths of the mutable content to be included in the content set.
- Enter the path in the Add Include Path field.
- Click Add Path to add the path to the content set.
- Click Add Path again as necessary.
- Up to 50 paths are allowed.
-
If you must refine or restrict your content set, subpaths can be excluded.
-
In the list of included paths, click the option Add exclude sub-paths next to the path you want to restrict.
-
Enter the subpath to exclude from the selected path.
-
Select Exclude Path.
-
Select Add exclude sub-paths again to add additional paths to exclude as necessary.
- Excluded paths must be relative to the included path.
- There is no limit on the number of excluded paths.
-
-
You can edit the specified paths, if necessary.
- Click the X next to the excluded subpaths so you can delete them.
- Click the ellipsis button next to the paths so you can reveal the Edit and Delete options.
-
Select Create to create the content set.
The content set can now be used to copy content between environments.
Edit a content set edit-content-set
- Follow similar steps as when creating a content step. Instead of clicking Add Content Set, select an existing set from the console, and select Edit from the ellipsis menu.
- When editing your content set, you can expand the configured paths to reveal the excluded subpaths.
Copy content copy-content
After a content set is created, you can use it to copy content.
To copy content:
-
Log into Cloud Manager at my.cloudmanager.adobe.com and select the appropriate organization and program.
-
On the Overview page, navigate to Environments > Content Sets.
-
On the console, select a content set.
-
From the ellipsis menu, click Copy Content.
note note NOTE An environment may not be selectable if any of the following is true: - The user does not have the appropriate permissions.
- The environment has a running pipeline or a copy content operation in progress.
- The environment is hibernating or starting up.
-
In the Copy content dialog box, specify the source and destination for your content copy action.
-
Content can only be copied from a higher environment to a lower environment or between development/RDE environments where the hierarchy of environments is as follows (from highest to lowest):
- Production
- Staging
- Development/RDE
-
By default, Cross-Program content copy is disabled. However, upon customer request, it can be enabled, which makes an additional Destination Program input field available.
-
-
(Optional) If desired, set the following:
-
Include Access Control Lists - Select if you want to copy the content’s access control permissions along with the content.
-
Wipe - Select to delete the existing content at the destination before starting the import, so you can start from a clean state and avoid conflicts with pre-existing content. If you leave Wipe deselected, Cloud Manager imports the new content on top of the existing destination content. A confirmation prompt appears before the wipe begins, and Cloud Manager logs the wipe action and import details for traceability.
-
When choosing the Wipe destination before import option and clicking Copy a popup will appear with a warning where you have the options to:
- Cancel (In this case the Copy Content flow will not start)
- Confirm (the Copy Content flow will start and the content on the destination will be wiped)
-
If you don’t choose Wipe destination before import then the Copy Content flow will work as before.
-
-
-
Click Copy.
The copy process starts. The status of the copy process is reflected in the console for the selected content set.
Content copy activity copy-activity
You can monitor the status of your copy processes in the Copy Content Activity page.
-
Log into Cloud Manager at my.cloudmanager.adobe.com and select the appropriate organization and program.
-
Navigate to the Environments screen from the Overview page.
-
Navigate to the Copy Content Activity page from the Environments screen.
Content copy statuses statuses
Once you start copying content, the process can have one of the following statuses.
Cancel a copy process canceling
If you must abort a content copy operation after starting it, you can optionally cancel it.
To do so, on the Copy Content Activity page, select the Cancel action from the ellipsis menu of the copy process you previously started.
Access logs accessing-logs
You can check the logs for both the source and destination environments for any completed content copy process.
To access logs:
- On the Copy Content Activity page, from the ellipsis menu, click Logs for the copy process you want to review. Then select the environment.
The logs are downloaded to your local machine.
- If the download does not commence, check your pop-up blocker settings.
Limitations limitations
The content copy tool has the following limitations.
-
The content copy tool supports two flow modes:
- Top-Down Flow – Content can be copied from higher environments to lower environments (for example Production → Stage, Stage → Development/RDE).
- Forward Flow (new feature) – Content can also be copied from a lower non-production environment to a higher non-production environment (for example Development → Stage, RDE → Stage). This feature is available only upon explicit request and remains enabled until explicitly requested to be disabled. Production environments are never valid destinations for Forward Flow.
-
Content can only be copied from and to authoring services.
-
Running concurrent content copy operations in the same environment is not possible.
-
Up to 50 paths can be specified per content set. There is no limitation on excluded paths.
-
Do not use the content copy tool as a cloning or mirroring tool because it cannot track moved or deleted content on the source.
-
The content copy tool has no versioning capability and cannot automatically detect modified content or created content on the source environment in a content set since the last content copy operation.
- If you want to update your destination environment with content changes only, since the last content copy operation, you must create a content set. Then, specify the paths on the source instance where changes were made since the last content copy operation.
-
Version information is not included in a content copy.
-
Content Fragments Models can specify reference fields based on universally unique IDs (UUID). Such UUIDs are repository-specific, so the content copy tool recalculates these UUIDs in the target environment when copying Content Fragments.