User defined target groups are where you have already created the necessary configuration on Data Mover DSC to allow backup/restore to/from S3. If the configuration is already setup, then you only have to provide the source system target group (target group for backup) and target system target group (target group for restore) in the cloudstagingarea.xml file.
The necessary configurations on the Data Mover DSC are:
- Creating AWS S3 account
- Creating two target groups (one for backup and one for restore) and linking to the AWS S3 account
- Creating a target group map that links the backup and restore target group
A sample cloudstagingarea.xml file for creating a cloud staging area with user defined target groups is:
{ "name": "cs2-cloudstagingarea", "storage_type": "S3", "source_target_pairs": [ { "source_system": "sourceSystemA", "source_system_target_group": "my_source_target_groupA", "target_system": "targetSystemB", "target_system_target_group": "my_target_target_groupB" }, { "source_system": "sourceSystemA", "source_system_target_group": "my_source_target_groupC", "target_system": "sourceSystemC", "target_system_target_group": "my_target_target_groupD" } ] }
You need to provide the following details in the cloudstagingarea.xml file.
- source_system_target_group
- target_system_target_group
When you run the command to create cloud staging area, the Cloud Staging Copy Service validates the source_system_target_group and target_system_target_group for each source and target pair, as following:
- The target groups exist.
- The target group map is linking the two target groups.
- The AWS/buckets specified in the target groups are same.
The AWS/regions/buckets and prefix_list need to match between the two target groups in each source target pair.