Restoring the Configuration from Back Up

This section describes the procedure involved in restoring all the Policy Builder and CRD configuration files from the backup.

Restoring Policy Builder Configuration

  1. Log in to the master node as an ubuntu user.

  2. Retrieve the Cisco Policy Suite Central URL.

    Example:

    ubuntu@popcf-mas01:~/backups_09182019_T2141$ kubectl get ing -n $( kubectl get namespaces | grep -oP 'pcf-(\d+|\w+)' | cut -d\  -f1) | grep policy-builder | awk '{ print $2 }'
    pb.pcf-02-pcf-engine-app-blv02.<ipv4address>.nip.io
    
  3. Navigate to the Cisco Policy Suite Central URL.

  4. Log in with your user credentials.

  5. Click Import/Export.

  6. Click Import tab.

  7. Click File to Import.

  8. Select the exported policy backed up in the Back Up SVN, Policy, and CRD Data section.

  9. In Import URL, specify the following URL:

    http://svn/repos/configuration 
  10. Enter a brief description in Commit Message text-box.

  11. Click Import.

  12. Log in to the master node as an ubuntu user.

  13. Run the following command to retrieve the Cisco Policy Builder URL.

    Example:

    kubectl get ing -n $(kubectl get namespaces | grep -oP 'pcf-(\d+|\w+)' | cut -d\  -f1) | grep policy-builder | awk '{ print "https://"$2"/pb" }'
    https://pb.pcf-02-pcf-engine-app-blv02.<ipv4address>.nip.io/pb
    ubuntu@popcf-mas01:~/backups_09182019_T2141$
    
  14. Navigate to the Cisco Policy Builder URL.

  15. Click Build Policies using version controlled data.

  16. Select Repository from the drop-down list.

  17. Click OK.

  18. Log in with your user credentials.

  19. Click File.

  20. Click Publish to Runtime Environment.

  21. Enter a brief description in Commit Message.

  22. Click OK.

Restoring CRD Data

  1. In CPS Central home page, click Custom Reference Data.

  2. Check Export CRD to Golden Repository check-box.

  3. Specify the SVN host name in Please enter valid server Hostname or IP text-box.

    Note

    For PCF the SVN host name value is svn.

  4. Click +.

  5. Click Export.

    Note

    You receive a success message when the data is exported successfully.

Removing Temporary Files

  1. Log in to SMI Cluster Manager as an ubuntu user.

  2. Delete the temporary directory.

    Note

    Ensure that a copy of the image is stored on OSPD before deleting.

    Example:

    ubuntu@popcf-cm01:~$ ls | grep temp
    temp_09192019_T0143
    ubuntu@popcf-cm01:~/temp_08072019_T1651$ 
    ubuntu@popcf-cm01:~/temp_08072019_T1651$ rm –f temp_09192019_T0143
    ubuntu@popcf-cm01:~/temp_08072019_T1651$