Operating replication using shell scripts

You can perform various replication operations such as starting, stopping, or removing table subscriptions and stopping or deleting replication sets. You can also add tables to the replication sets and configure table subscriptions.

About this task

Configuring table subscription on tables is an indication to the replication program to copy changes from the source site to the target site.

Procedure

  • Run the bludr-start-tables-in-replset.sh script to start the table subscription.
  • Run the bludr-stop-tables-in-replset.sh script to stop the table subscription.
  • Run the bludr-remove-tables-from-replset.sh script to remove the table subscription.
    Note: For Step 1,2, and 3 ensure you do the following:
    • Select the appropriate replication set name.
    • Input the complete file path for the table schema file.
    • Select the correct table name for which you want to start/stop/remove the subscription.
  • Stop or pause the replication set. Run the bludr-perform-replication-set-actions.sh script and select option 4.
  • To delete a replication set:
    1. List all the replication sets. Run the bludr-perform-replication-set-actions.sh script and select option 1. Make a note of the replication set name and the Consistency Group (CG) from the output that you want to delete.
    2. Delete the replication set. Run the bludr-perform-replication-set-actions.sh script and select option 6. Enter the replication set name and the Consistency Group (CG) that you want to delete.
  • Delete a destination/target site attached to a source site. Run the bludr-perform-target-actions.sh script and select option 4.