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:
-
Log in to the master node as an ubuntu user.
-
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
-
Navigate to the Policy Builder home page.
-
Click Import/Export.
-
Click All Data.
-
Export URL - Specifies the export URL.
-
Export File Prefix - Specify an appropriate name for the export file.
-
-
Click Export.
ImportantYou can find the exported file in your local Downloads directory.
To perform a backup of CRD data:
-
Navigate to the Policy Builder Home page.
-
Click Custom Reference Data.
-
Click Import/Export CRD data.
-
Click Export.
ImportantYou can find the CRD data in your Web browser's Downloads directory.