Back Up SVN, Policy, and CRD Data

This section describes the procedure involved in creating a backup of SVN, Policy, and CRD data. To perform a backup of SVN and Policy files:

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

  2. Use the following command to retrieve the Policy Builder URL.

    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 
    

    Example:

    ubuntu@ 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 }'

    Sample output:

    pb.pcf-02-pcf-engine-app-blv02.ipv4address.nip.io
    
  3. Navigate to the Policy Builder home page.

  4. Click Import/Export.

  5. Click All Data.

    • Export URL - Specifies the export URL.

    • Export File Prefix - Specify an appropriate name for the export file.

  6. Click Export.

    Important

    You can find the exported file in your local Downloads directory.

To perform a backup of CRD data:

  1. Navigate to the Policy Builder Home page.

  2. Click Custom Reference Data.

  3. Click Import/Export CRD data.

  4. Click Export.

    Important

    You can find the CRD data in your Web browser's Downloads directory.