Restoring an instance from a backup

You can restore your BDDCS instance from backup using the bdd-cloud.sh script.

Important

This requires you to SSH into the BDDCS node as the opc user, then switch to the bdd user. For information, see Accessing the service node in a cluster.
Before restoring, verify that you have the following:
  • The hostname of your BDDCS node. This is listed on the Overview page under BDD Nodes.
  • A BDDCS backup .tar file. You should know the name of the file you want to restore from beforehand. This is listed on the Backup tab of the Administration page.

To restore your BDDCS instance from backup:

  1. Open a command prompt and SSH into the BDDCS node as the opc user:
    ssh -i ~/.ssh/id_rsa opc@<hostname>
    
    Where <hostname> is the full hostname of the BDDCS node.
  2. Switch to the bdd user:
    sudo su bdd
    
  3. Verify that the following environment variables are set:
    Environment variable Value
    BDD_WLS_USERNAME The username for the WebLogic admin
    BDD_WLS_PASSWORD The password for the WebLogic admin
    To determine whether they're set, run:
    echo $<ENVIRONMENT_VARIABLE_NAME>
    
    The above command should print the value of the specified environment variable to the console. If it doesn't, set the environment variable:
    export <ENVIRONMENT_VARIABLE_NAME>=<value>
    
  4. Go to /home/bdd/Oracle/Middleware/BDD and run the restore script:
    cd /home/bdd/Oracle/Middleware/BDD
    ./bdd-cloud.sh backup restore --archive_name=<backup_file>
    
    Where <backup_file> is the name of the file you want to restore from, including the .tar file extension.

The script stops your BDDCS instance, restores it, then restarts it. This may take a long time, depending on the amount of data you have. When the script completes, your BDDCS instance will be fully restored and running.