--- title: "OpenSearch Backup and Restore (Docker Swarm)" slug: "opensearch-backup-and-restore-docker-swarm" updated: 2026-08-25T14:21:40Z published: 2026-08-25T14:21:40Z canonical: "docs.crossworkassurance.cisco.com/opensearch-backup-and-restore-docker-swarm" --- > ## 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. # OpenSearch Backup and Restore (Docker Swarm) This article describes how to verify backups for the OpenSearch 2.19.5 service used by current Crosswork Assurance deployments on Docker Swarm, and how to request a restore. ## Backup scope and schedule The Docker Swarm deployment uses the same OpenSearch backup archive prefix and the same ActiveAlerts-only scope as the Kubernetes deployment. Backups contain the ActiveAlerts indexes only (`*_active_alerts`). The product does not support using this backup or the Elasticsearch-to-OpenSearch migration to carry over other Elasticsearch indexes. The backup is stored as a compressed archive in the configured object-storage bucket under this prefix: ``` opensearch/v2/opensearch-Backup/ ``` Each archive name includes the backup timestamp, for example: ``` 2026-07-22_02-30-00.tar.gz ``` ## Verify the scheduled backup Verify the scheduled backup service and inspect its logs from a Swarm manager: ``` docker service ps aod_ofelia docker service logs aod_ofelia ``` ## Create a manual backup Trigger a one-time backup directly through the OpenSearch backup REST API sidecar when you need a backup before maintenance or an upgrade: ``` OS_CONTAINER=$(docker ps --filter name=aod_opensearch01 -q | head -1) docker exec "$OS_CONTAINER" curl -vvv -f http://localhost:10005/backup ``` The command succeeds when the output ends with `Successfully ran Backup on opensearch`. ## Restore an OpenSearch backup Restoring replaces or adds search indexes, so perform this procedure during an approved maintenance window. Do not copy an archive directly into an OpenSearch data volume and do not manually delete OpenSearch data directories. ### Locate the restore helper script The deployment installs the restore helper on the Swarm leader host. Run it from the Swarm leader with sufficient privileges. ### List available backups ``` sudo /etc/aod/scripts/opensearch-restore-swarm.sh --list-only ``` ### Run the restore helper By default, the helper restores `*_active_alerts` under temporary validation index names. This validates that the archive can be restored without replacing the live ActiveAlerts indexes. Review the helper output and complete the validation before requesting a same-name restore. ``` sudo /etc/aod/scripts/opensearch-restore-swarm.sh --archive .tar.gz ``` > **Warning:** A same-name restore can replace live ActiveAlerts data. Use it only when the maintenance plan calls for replacement and after the validation restore succeeds. A same-name restore requires explicit confirmation: ``` sudo /etc/aod/scripts/opensearch-restore-swarm.sh \ --archive .tar.gz \ --same-name \ --confirm-same-name ``` The restore helper retrieves the archive from the configured object-storage location, prepares the OpenSearch snapshot repository, and restores the supported ActiveAlerts indexes. Follow the helper's completion status and verify that ActiveAlerts data is available before ending the maintenance window. ### Before closing the maintenance window Verify that ActiveAlerts data is visible in the Crosswork Assurance UI before ending the maintenance window. If ActiveAlerts data is missing or incorrect, keep the maintenance window open and continue working with TAC. > **Warning:** Do not copy an archive directly into an OpenSearch data volume and do not manually delete OpenSearch data directories. ## Elasticsearch-to-OpenSearch migration note During the supported Elasticsearch-to-OpenSearch migration, only the ActiveAlerts indexes (`*_active_alerts`) are migrated. Other Elasticsearch indexes are not carried forward by the product migration path. Plan any retention, export, or replacement requirements for other Elasticsearch data separately. ## Related Topics - [OpenSearch Backup and Restore (Kubernetes)](/docs/opensearch-backup-and-restore) - [Elasticsearch Backup and Restore](/docs/elasticsearch-backup-and-restore) (until deployments migrate) **© 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)