Starting Data Replication
You can create and run replications from source to target data stores.
Before you begin
Complete the following prerequisites:
- You must have a Data Replication service. If you do not have a Data Replication service instance, see Creating and managing IBM Cloud services.
- You must create a project.
- You must add Data Replication as an associated service to your project.
Starting your replication
To start Data Replication:
-
From the Assets tab of your project, click New asset > Replicate data.
-
Enter a name.
-
The Copy business goal is already selected for you. Copy will synchronize the specified schemas and tables from the source to the target. Click Source options.
-
Select a source connection from the list, or click Add Connection to create a new one. For more information on how to set up each type of connection, see Supported Data Replication connections.
-
Click Select data.
-
Select a schema to see the list of tables for that schema. You can select one or more schemas and tables.
Selecting only a schema without selecting any tables in the schema will keep the schema (and all its tables) from the source synchronized on the target. An asterisk will be added next to the schema in the Replication selection column to indicate that the entire schema will be replicated.
If you select one or more specific tables from a schema, then only those tables will be synchronized. The tables will be listed in the Replication selection column and you can expand and collapse the schema to see the set of selected tables from that schema.
-
Click Target options.
-
Select a target connection from the list, or click Add Connection to create a new one. For more information on how to set up each type of connection, see Supported Data Replication connections.
-
Click Review.
-
Review the summary, then click Create.
Running your replication
To run your replication:
-
From the project, click the Assets tab.
-
Click the Data Replication asset.
-
Choose the Data Replication service instance that you want to use to run the replication job from a drop-down list that contains the service instances you can access.
Note:The Data Replication service instance that is created when the service is installed is only accesible to users with Admin access to the project. If you do not have access to any replication service instances, you can create a new replication service instance or request the Cluster Administrator to grant you access to existing service instances. -
Click the Run replication icon to start the replication process.
-
The first time you click the Run replication icon on a Data Replication asset, an API key configuration dialog will appear. This API key updates information in the project.
- Click Generate an API key.
- A Name and Description are provided for you, and you can edit both.
- Click Generate and run.
- To save your API key, click the Copy icon, and paste into the password manager software of your choice.
- Click Close.
The replication status changes to Starting and you can see progress in the event log. The status changes to Running after the replication process starts.
Data replication continues until you stop the process manually. Changes to the selected source schema tables are replicated in the target database tables.
Learn more
Parent topic: Data Replication (beta)