Backup and restore
Backup and restore Red Hat Advanced Cluster Security for Kubernetes 4.6 Backing up and restoring Red Hat Advanced Cluster Security for Kubernetes Red Hat OpenShift Documentation Team
export ROX_API_TOKEN=<api_token> export ROX_ENDPOINT=<address>:<port_number> roxctl central backup 1 export ROX_ENDPOINT=<address>:<port_number> roxctl -p <admin_password> central backup 1 oc get central -n _<central-namespace>_ _<central-name>_ -o yaml > central-cr.yaml oc get secret -n _<central-namespace>_ central-tls -o json | jq 'del(.metadata.ownerReferences)' > central-tls.json oc get secret -n _<central-namespace>_ central-htpasswd -o json | jq 'del(.metadata.ownerReferences)' > central-htpasswd.json helm get values --all -n _<central-namespace>_ _<central-helm-release>_ -o yaml > central-values-backup.yaml export ROX_API_TOKEN=<api_token> export ROX_ENDPOINT=<address>:<port_number> roxctl central db restore <backup_file> 1 export ROX_ENDPOINT=<address>:<port_number> roxctl -p <admin_password> \ 1 central db restore <backup_file> 2 roxctl central generate interactive Enter path to the backup bundle from which to restore keys and certificates (optional): _<backup-file-path>_ ./central-bundle/central/scripts/setup.sh cat central-bundle/password oc apply -f central-tls.json oc apply -f central-htpasswd.json oc apply -f central-cr.yaml roxctl central generate k8s pvc --backup-bundle _<path-to-backup-file>_ --output-format "helm-values" helm install -n stackrox --create-namespace stackrox-central-services rhacs/central-services -f central-values-backup.yaml -f central-bundle/values-private.yaml