Sync RPAgent Configuration

Update the RPAgent configuration on the cluster using the RPAgent Script

The sync_rpagent.sh script in the <installation_directory>/cluster_utils/ directory, updates the RPAgent configuration and the certificates across the nodes in the cluster. For example, if you want to make any changes to the RPAgent conifguration, make the changes on the Lead node and then propagate the change to all the nodes in the cluster using the sync_rpagent.sh script.

  1. Log in to the lead or the Primary node.

  2. Navigate to the <installation_directory>/cluster_utils/ directory.

  3. To replicate the RPAgent configuration from the lead node to all the nodes, run the following command:

    ./sync_rpagent.sh
    
  4. Press ENTER.

    The prompt to continue appears.

    **********************************************************************
    Welcome to BDP Script for Cloning RPAgent Configuration & Certificates
    **********************************************************************
    
    This will clone deployed RPAgent configuration & files from lead node
    to all other nodes.
    
    Do you want to continue? [yes or no]:
    
  5. To continue, type yes.

  6. Press ENTER.

    The prompt to enter the location of the Private Key file appears.

    Big Data Protector RPAgent Configuration & Certificates cloning started
    Enter the path of the Private Key (.PEM) file:
    
  7. Enter the location of the Private Key file.

  8. Press ENTER.

    The script stops the RPAgent on all the nodes, creates a backup, updates the configuration, and restarts the RPAgent on all the nodes.

    Checking connectivity of cluster nodes...
    
    Big Data Protector RPAgent Configuration & Certificates cloning started
    
    Stopping RPAgent on current node...
    
    Stopping RPAgent on all nodes...
    
    Creating rpagent_old/data_07-24-2025_07:45:43/new_data directory on all nodes...
    
    Changing ownership of rpagent_old/ directory recursively on all nodes...
    
    Changing permission of rpagent_old/ on all nodes...
    
    Removing RPAgent Configuration & Certificates from all nodes...
    Removed /opt/protegrity/rpagent/data/ from all nodes
    
    Copying current node's rpagent/data/ to all other nodes...
    
    Changing ownership of rpagent_old/data_07-24-2025_07:45:43/new_data/data.tgz...
    
    Changing permission of rpagent_old/data_07-24-2025_07:45:43/new_data/data.tgz...
    
    Extracting rpagent_old/data_07-24-2025_07:45:43/new_data/data.tgz to rpagent/data/...
    
    Changing permission of rpagent/data/...
    
    Removing backup directory rpagent_old/...
    
    Starting RPAgent on current node...
    
    Starting RPAgent on all nodes...
    
    Successfully updated RPAgent Configuration and Certificates across all cluster nodes
    
    The script's logs and operation results are logged in /opt/protegrity/logs/sync_rpagent.log
    

Last modified : October 03, 2025