An administrator needs to back up the Cortex XSOAR application data, including incident history, playbooks, and configuration settings. Which tool is officially recommended for taking a consistent backup of the internal configuration and database?
Trap 1: tar -czvf /backup/xsoar.tar.gz /var/lib/demisto
A raw tar of /var/lib/demisto captures files while the database and services are live, producing an inconsistent archive that can omit in-flight incident writes. It is tempting because tar is a familiar general-purpose archiving tool, and it would be correct for backing up static directories or log files that are not being concurrently modified.
Trap 2: pg_dump demisto > backup.sql
pg_dump exports only the PostgreSQL database, so playbook files, integrations and configuration stored outside the database are omitted, and it is not the vendor-recommended mechanism. It is tempting because pg_dump is the standard PostgreSQL backup utility, and it would be the right choice for capturing a standalone database with no accompanying application state.
Trap 3: XSOAR Web UI > Settings > Maintenance > Export Snapshot
The Maintenance Export Snapshot produces a support-oriented diagnostic bundle rather than a restorable backup of incident history, playbooks and configuration. It is tempting because it is an official in-product export, and it would be appropriate when gathering logs and system state for Palo Alto support to troubleshoot a fault.
- A
tar -czvf /backup/xsoar.tar.gz /var/lib/demisto
Why it fails: A raw tar of /var/lib/demisto captures files while the database and services are live, producing an inconsistent archive that can omit in-flight incident writes. It is tempting because tar is a familiar general-purpose archiving tool, and it would be correct for backing up static directories or log files that are not being concurrently modified.
- B
pg_dump demisto > backup.sql
Why it fails: pg_dump exports only the PostgreSQL database, so playbook files, integrations and configuration stored outside the database are omitted, and it is not the vendor-recommended mechanism. It is tempting because pg_dump is the standard PostgreSQL backup utility, and it would be the right choice for capturing a standalone database with no accompanying application state.
- C
demisto-ctl backup
demisto-ctl backup is the vendor-supplied command that quiesces services and captures the internal configuration and database consistently, covering incident history, playbooks and settings. Generic filesystem or VM snapshots risk capturing an inconsistent state while the application is running.
- D
XSOAR Web UI > Settings > Maintenance > Export Snapshot
Why it fails: The Maintenance Export Snapshot produces a support-oriented diagnostic bundle rather than a restorable backup of incident history, playbooks and configuration. It is tempting because it is an official in-product export, and it would be appropriate when gathering logs and system state for Palo Alto support to troubleshoot a fault.