--- title: "Backup and Restore (Kubernetes)" slug: "257-backup-and-restore-kubernetes" updated: 2026-03-26T17:16:50Z published: 2026-03-26T17:17:00Z canonical: "docs.crossworkassurance.cisco.com/257-backup-and-restore-kubernetes" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Backup and Restore (Kubernetes) This document provides an overview of the automated backup and restoration procedures available for on-premises Kubernetes deployments using Crosswork Assurance . It covers backup strategies for targeted application issues and infrastructure failures, guiding users through accessing backups, triggering manual backups, restoration steps, and recovery from catastrophic infrastructure loss. Cisco Crosswork Assurance ensures data protection and rapid recovery by leveraging Kubernetes CronJobs and MinIO object storage, supporting critical components such as CouchDB, PostgreSQL, Elasticsearch, and Dgraph. ## Backup Overview Crosswork Assurance automatically backs up critical data stores using Kubernetes CronJobs that run daily. Backups are stored in the local MinIO object storage deployed as part of the solution. ### Backed-Up Components | Component | CronJob Name | Default Schedule | Storage Path | | --- | --- | --- | --- | | CouchDB | `backup-create-couchdb` | 01:00 UTC | `couchDB/v2/couchDB-Backup/` | | PostgreSQL | `postgres-backup-create` | 01:00 UTC | `postgres/v2/` | | Yang PostgreSQL | `yang-postgres-backup-create` | 01:00 UTC | `postgres/v2/` | | Elasticsearch | `backup-create-elasticsearch` | 01:00 UTC | `elasticsearch/v2/elasticsearch-Backup/` | | Dgraph | Managed by `stitchit-env-config` | 04:00 UTC | `dgraphBackup/v2/` | To verify backup jobs are running: ```plaintext kubectl get cronjobs -n pca ``` ## Targeted Backup and Restoration Configuration and application data are automatically backed up daily to MinIO. These backups address specific database corruption or accidental data deletion scenarios. ### Access Backup You can access backups through the MinIO pod using the MinIO client (`mc`): 1. Connect to the MinIO pod: ```plaintext kubectl exec -it -n pca pca-minio-pool-0-0 -- sh ``` 2. Load MinIO credentials: ```plaintext . /tmp/minio/config.env ``` 3. Configure the MinIO client: ```plaintext mc alias set --insecure pca https://localhost:9000 "$MINIO_ROOT_USER" "$MINIO_ROOT_PASSWORD" ``` 4. List available backups (example for CouchDB): ```plaintext mc --insecure ls pca//couchDB/v2/couchDB-Backup/ ``` Replace `<bucket-name>` with your deployment's bucket name (visible in the backup CronJob configuration). ### Manual Backup Trigger You can trigger an immediate backup from any pod with `curl` installed (such as `airflow`): - **CouchDB:** ```plaintext kubectl exec -it -n pca airflow-0 -- curl -f couchdb:10003/backup ``` - **PostgreSQL:** ```plaintext kubectl exec -it -n pca airflow-0 -- curl http://postgres:10004/backup ``` - **Elasticsearch:** ```plaintext kubectl exec -it -n pca airflow-0 -- curl -f elasticsearch01:10005/backup ``` ### Restoration Procedures Restoration procedures vary by component and require careful coordination to avoid data loss. The general process involves: 1. Export backup files from MinIO to the admin VM 2. Identify the target node and persistent volume claim (PVC) 3. Stop the affected service and dependent services 4. Replace data files with backup contents 5. Restart services in the correct order 6. Validate data integrity For detailed step-by-step restoration procedures, see the component-specific guides: - [CouchDB Backup and Restore](/25-7/docs/couchdb-backup-and-restore) - [PostgreSQL Backup and Restore](/25-7/docs/postgresql-backup-and-restore) - [Elasticsearch Backup and Restore](/25-7/docs/elasticsearch-backup-and-restore) - [Dgraph Backup and Restore](/25-7/docs/dgraph-back-and-restore) > **Important:** For complex recovery scenarios or if you encounter issues, contact Cisco TAC for assistance. ## Infrastructure Issues Requiring Rebuild For catastrophic scenarios involving node loss or storage failures, application backups alone may not be sufficient for rapid recovery. ### Recommended Snapshots Maintain regular snapshots of the following for disaster recovery: **All cluster nodes:** - `/var/lib/embedded-cluster/` — Contains OpenEBS local storage PVCs **Admin node only:** - Replicated Admin Console configuration - Deployment configuration files ### Storage Considerations Embedded and air-gapped deployments use **OpenEBS local storage** (`openebs-hostpath`), meaning persistent volume data resides directly on node filesystems at: ```plaintext /var/lib/embedded-cluster/openebs-local// ``` To identify which node hosts a specific service's data: ```plaintext kubectl get pods -n pca -o wide | grep kubectl get pvc -n pca | grep ``` ### Recovery from Infrastructure Loss Recovery from node or storage loss requires: 1. Restore the node or provision a replacement 2. Restore filesystem snapshots to the appropriate paths 3. Rejoin the node to the cluster (if applicable) 4. Verify PVC bindings and service health > **Important:** Contact Cisco TAC for infrastructure recovery. TAC provides deployment-specific guidance based on your cluster topology and the nature of the failure. ## Post-Restoration Validation After any restoration: 1. Verify service health through the Crosswork Assurance UI 2. Check that data is processing correctly 3. Review logs for errors: ```plaintext kubectl logs -f -n pca ``` 4. For time-sensitive data, you may need to backfill jobs for the period between the backup timestamp and the restoration time ## Related Topics - [Sensor Management CLI Reference](/release-25-7/docs/sensor-management-cli-reference) **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)