Back up data

Medusa, a tool for backing up Apache Cassandra®, DataStax Enterprise (DSE), and Hyper-Converged Database (HCD) data in an object store, is included in the Mission Control package. Medusa integrates with the Management API to coordinate snapshot operations across cluster nodes during backup and restore.

Mission Control runs scheduled backups in the data planes even when the control plane is unavailable. Your data protection strategy remains intact during control plane outages. For more information, see Backup and repair behavior during outages.

Backup terminology

Understanding Mission Control backup terminology and settings helps you manage your data protection strategy more effectively.

Differential backup

Combines the last full backup with all data that changed since that backup. Mission Control creates a synthetic full backup by merging the base backup with incremental changes.

Full backup

Serves as the baseline for subsequent differential backups.

Backup job

A MedusaBackupJob resource that initiates a backup operation. The job creates a corresponding MedusaBackup resource upon completion.

Backup schedule

A MedusaBackupSchedule resource that automates backup operations based on a cron expression. Generates MedusaBackupJob resources at scheduled intervals.

Backup retention

Controls how long backups remain in storage. You can configure retention periods using the maxBackupAge and maxBackupCount parameters.

Supported object storage types for backups

Mission Control uses remote object stores to retain backed up files and to maintain their durability. Use an object store provided as a managed cloud service or as a component in a private cloud.

The following providers are compatible with Mission Control for backup and restore services:

Storage provider Backend identifier

Amazon Simple Storage Service (S3)

s3

S3 Compatible (Red Hat OpenShift Data Foundation Object Bucket Claim, SeaweedFS)

s3_compatible

Ceph Object Gateway

s3_rgw

Azure Blob Storage

azure_blobs

Google Cloud Storage (GCS)

google_storage

Resources included in backups

Mission Control includes the following resources in backup operations:

  • Database data files: All SSTables and data files from your Cassandra, DSE, or HCD nodes

  • Schema definitions: Keyspace and table schemas, including column definitions and data types

  • Token metadata: Node token assignments and cluster topology information

  • Commit logs: Recent write operations that the system has not yet flushed to SSTables (when available)

Backups do not include:

  • Kubernetes configuration resources (ConfigMaps, Secrets, Services).

  • Mission Control control plane configuration.

  • Application-specific configurations outside the database.

  • Cluster definitions, including MissionControlCluster, K8ssandraCluster, or CassandraDatacenter resources.

  • Temporary or cache data.

Use the backup metadata to verify which resources each backup operation includes. Review the MedusaBackup object status to confirm the backup scope and completeness.

Prerequisites

  • A running Mission Control environment.

  • A configured storage backend or bucket with the appropriate, supported provider.

  • To configure backup, use the MissionControlCluster definition that matches your release version. You must create a secret with the appropriate provider configuration in the target namespace before you create the MissionControlCluster object. For examples, see Create a secret.

    When the secret is not present before the cluster is created, nodes wait indefinitely for the secret. Once you create the secret, the nodes are scheduled and begin bootstrapping.

Create a secret

Based on your provider (S3-compatible, AWS S3, GCS, or Azure), choose one of the following example formats for secret creation:

S3-compatible (Red Hat OpenShift Data Foundation or SeaweedFS)
apiVersion: v1
kind: Secret
metadata:
 name: medusa-bucket-key
type: Opaque
stringData:
 credentials: |-
   [default]
   aws_access_key_id = S3_COMPATIBLE_USERNAME
   aws_secret_access_key = S3_COMPATIBLE_PASSWORD

Replace the following:

  • S3_COMPATIBLE_USERNAME: The username for your S3-compatible storage

  • S3_COMPATIBLE_PASSWORD: The password for your S3-compatible storage

AWS S3
apiVersion: v1
kind: Secret
metadata:
 name: medusa-bucket-key
type: Opaque
stringData:
 credentials: |-
   [default]
   aws_access_key_id = AWS_ACCESS_KEY_ID
   aws_secret_access_key = AWS_SECRET_ACCESS_KEY

Replace the following:

  • AWS_ACCESS_KEY_ID: Your AWS access key ID

  • AWS_SECRET_ACCESS_KEY: Your AWS secret access key

Google Cloud Storage (GCS)
apiVersion: v1
kind: Secret
metadata:
 name: medusa-bucket-key
type: Opaque
stringData:
 credentials: |-
    {
      "type": "service_account",
      "project_id": "GCP_PROJECT_ID",
      "private_key_id": "PRIVATE_KEY_ID",
      "private_key": "-----BEGIN PRIVATE KEY-----\n
      ...
       insert extensive alphanumeric string
      ...
      \n-----END PRIVATE KEY-----\n",
      "client_email": "SERVICE_ACCOUNT_EMAIL",
      "client_id": "CLIENT_ID",
      "auth_uri": "https://accounts.google.com/o/oauth2/auth",
      "token_uri": "https://oauth2.googleapis.com/token",
      "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
      "client_x509_cert_url": "CLIENT_X509_CERT_URL"
    }

Replace the following:

  • GCP_PROJECT_ID: Your Google Cloud project ID

  • PRIVATE_KEY_ID: The ID of your service account private key

  • SERVICE_ACCOUNT_EMAIL: The email address of your GCS service account

  • CLIENT_ID: Your service account client ID

  • CLIENT_X509_CERT_URL: The x509 certificate URL for your service account

Azure (blob)
apiVersion: v1
kind: Secret
metadata:
 name: medusa-bucket-key
type: Opaque
stringData:
 credentials: |-
    {
        "storage_account": "STORAGE_ACCOUNT_NAME",
        "key": "STORAGE_ACCOUNT_KEY"
    }

Replace the following:

  • STORAGE_ACCOUNT_NAME: Your Azure storage account name

  • STORAGE_ACCOUNT_KEY: Your Azure storage account key

    In the stringData.credentials section, do not change the format as shown in the example and provide the credential values that Medusa expects for your Cloud Storage Provider’s storage backend.

Enable backup support on a cluster

Deploy the backup component Medusa on all Mission Control datacenters in a cluster by adding and defining the spec.medusa section in the MissionControlCluster manifest that matches your release version.

Reference a MedusaConfiguration custom resource (CR) by name using medusaConfigurationRef. The MedusaConfiguration CR holds all storage backend settings. You create it in the next step, Configure backup storage.

apiVersion: missioncontrol.datastax.com/v1beta2
kind: MissionControlCluster
metadata:
  name: CLUSTER_NAME
spec:
  k8ssandra:
    medusa:
      medusaConfigurationRef:
        name: MEDUSA_CONFIGURATION_NAME
    cassandra:
      serverVersion: 4.0.11
      ...

Replace the following:

  • CLUSTER_NAME: The name of your MissionControlCluster resource

  • MEDUSA_CONFIGURATION_NAME: The name of the MedusaConfiguration CR that contains the storage backend configuration

If you want to set a storage path prefix for this cluster’s backups, add storageProperties.prefix alongside medusaConfigurationRef:

    medusa:
      medusaConfigurationRef:
        name: MEDUSA_CONFIGURATION_NAME
      storageProperties:
        prefix: PREFIX

Replace the following:

  • MEDUSA_CONFIGURATION_NAME: The name of the MedusaConfiguration CR

  • PREFIX: The storage path prefix for this cluster’s backups

Alternatively, you can define storage settings directly in the MissionControlCluster manifest using storageProperties instead of a MedusaConfiguration CR. Based on your provider, choose one of the following formats:

S3-compatible
spec:
  k8ssandra:
    medusa:
      storageProperties:
        storageProvider: s3_compatible
        bucketName: BUCKET_NAME
        storageSecretRef:
          name: SECRET_NAME
        host: HOST
        port: PORT
        secure: false
    cassandra:
      serverType: hcd
      serverVersion: 2.0.8
      ...

Replace the following:

  • BUCKET_NAME: The name of your storage bucket

  • SECRET_NAME: The name of the secret containing your storage credentials

  • HOST: The hostname of your S3-compatible storage backend

  • PORT: The port of your S3-compatible storage backend

AWS S3
spec:
  k8ssandra:
    medusa:
      storageProperties:
        storageProvider: s3
        bucketName: BUCKET_NAME
        region: REGION
        storageSecretRef:
          name: SECRET_NAME
    cassandra:
      serverVersion: 4.0.11
      ...

Replace the following:

  • BUCKET_NAME: The name of your storage bucket

  • REGION: The region where your bucket resides

  • SECRET_NAME: The name of the secret containing your storage credentials

GCS
spec:
  k8ssandra:
    medusa:
      storageProperties:
        storageProvider: google_storage
        bucketName: BUCKET_NAME
        storageSecretRef:
          name: SECRET_NAME
    cassandra:
      serverVersion: 4.0.11
      ...

Replace the following:

  • BUCKET_NAME: The name of your storage bucket

  • SECRET_NAME: The name of the secret containing your storage credentials

Azure (blob)
spec:
  k8ssandra:
    medusa:
      storageProperties:
        storageProvider: azure_blobs
        bucketName: BUCKET_NAME
        storageSecretRef:
          name: SECRET_NAME
    cassandra:
      serverVersion: 4.0.11
      ...

Replace the following:

  • BUCKET_NAME: The name of your storage bucket

  • SECRET_NAME: The name of the secret containing your storage credentials

Configure backup storage

Complete these steps if you need to configure a storage bucket for your cloud provider. A storage bucket is required before you can run a data backup.

You can use the Mission Control UI or CLI to configure backup storage:

Use the UI
  1. Access Mission Control’s UI.

  2. Select your project, and then click the cluster name.

  3. Click Backups, and then click Configurations.

    Create, modify, or delete a backup storage configuration by choosing the appropriate step:

    • To set up a storage bucket for the backup, click Create configuration.

      • Enter the required field information and any other values that are pertinent to your environment, and then click Create configuration.

    • To delete a backup configuration, find the row with its name in the list of buckets.

      • Click more_vert More Options on the row of your target bucket.

      • Click Delete.

Use the CLI
  1. Access Mission Control’s CLI.

  2. Create or modify a MedusaConfiguration CR in the same namespace and data plane where either the MissionControlCluster or cassandraDatacenter resource resides.

    apiVersion: medusa.k8ssandra.io/v1alpha1
    kind: MedusaConfiguration
    metadata:
      name: MEDUSA_CONFIGURATION_NAME
    spec:
      k8ssandra:
        medusa:
          storageProperties:
            storageProvider: STORAGE_PROVIDER
            bucketName: BUCKET_NAME
            storageSecretRef:
              name: SECRET_NAME
            region: REGION
            secure: "False"
            concurrentTransfers: 1
            host: "HOST"
            port: PORT
            maxBackupAge: 0
            maxBackupCount: 0

    Replace the following:

    • MEDUSA_CONFIGURATION_NAME: The name of this MedusaConfiguration CR.

    • Use the same name you referenced in medusaConfigurationRef.name in the MissionControlCluster manifest.

    • STORAGE_PROVIDER: Your storage provider: google_storage, azure_blobs, s3, s3_compatible, or s3_rgw.

    • BUCKET_NAME: The name of your storage bucket.

    • SECRET_NAME: The name of the secret containing your storage credentials.

    • REGION: The region of your storage bucket. Required for S3-based providers; omit for GCS, Azure, and local.

    • HOST: The hostname of your storage backend.

    • Omit for GCS, S3, Azure, and local.

    • PORT: The port of your storage backend.

    • Omit for GCS, S3, Azure, and local.

      The following spec.storageProperties fields are useful. See the MedusaConfiguration CRD reference for the full list:

    • storageProvider: The storage provider: google_storage, azure_blobs, s3, s3_compatible, or s3_rgw.

    • bucketName: The name of the storage bucket to use for backups.

    • region: The region of the storage bucket. Required for S3-based providers.

    • secure: Indicates whether to use SSL to connect to the storage backend. Used for S3-compatible.

    • concurrentTransfers: The number of concurrent uploads.

    • host: Host to connect to for the storage backend. Omit for GCS, S3, Azure, and local.

    • port: Port to connect to the storage backend. Omit for GCS, S3, Azure, and local.

    • maxBackupAge: Maximum backup age that the purge process must observe.

    • maxBackupCount: Maximum number of backups to keep. Used by the purge process. Default is unlimited.

Create an immediate backup

Run a backup of a HCD, DSE, or Cassandra datacenter (DC) that uses a MedusaBackupJob CR in the same namespace and data plane where either the MissionControlCluster or CassandraDatacenter resource resides.

Mission Control runs a synthetic full backup, and names it according to how it is created. This backup type combines, at a point in time, the last full backup in storage with all data that is different since that last full backup. Mission Control copies this combined backup to the backup datastore. The use of immutable data files allows for this optimization.

Choose UI or CLI steps to immediately back up a datacenter in a cluster.

To schedule a backup activity of a datacenter in the cluster, see Create a backup schedule.

Use the UI
  1. Access Mission Control’s UI.

  2. Select your project, and then click the cluster name.

  3. Click the Backups tab, and then click Create backup.

  4. Change the backup Type to Run now.

  5. Choose the target datacenter.

  6. Click Create backup.

    To view notifications from the backup activity, see Monitor backup status.

Use the CLI
  1. Access Mission Control’s CLI.

  2. Create a MedusaBackupJob CR in the same namespace and data plane where either the MissionControlCluster or cassandraDatacenter resource resides. This example uses cassandraDatacenter: dc1.

    apiVersion: medusa.k8ssandra.io/v1alpha1
    kind: MedusaBackupJob
    metadata:
      name: medusa-backup1
    spec:
      cassandraDatacenter: dc1

    Mission Control detects the MedusaBackupJob object creation and triggers a backup asynchronously.

    To view notifications from the backup activity, see Monitor and troubleshoot backups.

Monitor backup status

You can use the Mission Control UI or CLI to monitor backup status.

Use the UI
  1. Access Mission Control’s UI.

  2. Select your project, and then click the cluster name.

  3. Click the Backups tab.

    In the Backup your service data pane, immediate backup jobs are tracked as well as any future scheduled backups.

    In the Backup activity section, review notifications of each datacenter’s immediate backup status.

    In the Scheduled backups section, review a datacenter’s scheduled backup details.

Use the CLI

Monitor backup status through the MedusaBackup resource. Review the finishedNodes and totalNodes fields to verify backup completion across the cluster:

  1. Access Mission Control’s CLI.

  2. Check if the finishTime status is set in the MedusaBackupJob object.

    kubectl get medusabackupjob/medusa-backup1 -o yaml
    kind: MedusaBackupJob
    metadata:
        name: medusa-backup1
    spec:
      cassandraDatacenter: demo-dc1
    status:
      ...
      ...
      finishTime: "2022-01-06T16:34:35Z"
      finished:
      - demo-dc1-default-sts-0
      - demo-dc1-default-sts-1
      - demo-dc1-default-sts-2
      startTime: "2022-01-06T16:34:30Z"
  3. Review the start and finish times in the results from this kubectl get command:

    kubectl get MedusaBackupJob -A
    NAME             STARTED   FINISHED
    backup1          25m       24m
    medusa-backup1   19m       19m

    If a node has a completed backup, the time is listed in the FINISHED column. At the end of the backup operation, a MedusaBackup CR is created with the same name as the MedusaBackupJob object. The CR materializes the backup locally on the Kubernetes cluster. The MedusaBackup object status contains the total number of nodes in the cluster at the time of the backup, the number of nodes that successfully achieved the backup, and the topology of the datacenter at the time of the backup:

    apiVersion: medusa.k8ssandra.io/v1alpha1
    kind: MedusaBackup
    metadata:
      name: backup1
    status:
      startTime: '2023-09-13T12:15:57Z'
      finishTime: '2023-09-13T12:16:12Z'
      totalNodes: 2
      finishedNodes: 2
      nodes:
        - datacenter: dc1
          host: firstcluster-dc1-default-sts-0
          rack: default
          tokens:
            - -110555885826893
            - -1149279817337332700
            - -1222258121654772000
            - -127355705089199870
        - datacenter: dc1
          host: firstcluster-dc1-default-sts-1
          rack: default
          tokens:
            - -1032268962284829800
            - -1054373523049285200
            - -1058110708807841300
            - -107256661843445790
      status: SUCCESS
    spec:
      backupType: differential
      cassandraDatacenter: demo-dc1
  4. Review the resulting subset of the CR information for MedusaBackup objects:

    kubectl get MedusaBackup -A
    NAME             STARTED   FINISHED   NODES   COMPLETED   STATUS
    backup1          29m       28m        2       2           SUCCESS
    medusa-backup1   23m       23m        2       2           SUCCESS

    For a restore to be possible, a MedusaBackup object must exist.

Monitor and troubleshoot backups

You can use the Mission Control UI or CLI to monitor backup status and troubleshoot common backup issues.

Monitor backup status

Monitor backup status through the MedusaBackup resource. Review the finishedNodes and totalNodes fields to verify backup completion across the cluster.

Backup operation times out

If the backup operation does not complete within the expected timeframe, large datasets, network congestion, or insufficient resources might be causing the timeout.

To resolve this issue, do the following:

  1. Check the backup progress in the MedusaBackupJob status:

    kubectl get medusabackupjob BACKUP_NAME -o yaml

    Replace BACKUP_NAME with the name of your backup job.

  2. Verify that the Medusa container exists in your pod:

    kubectl get pod POD_NAME -o jsonpath='{.spec.containers[*].name}'

    Replace POD_NAME with the name of your pod.

    If the output does not include medusa, enable backup support on your cluster before performing backup operations. See Enable backup support on a cluster for instructions.

  3. Review the Medusa container logs for detailed progress information:

    kubectl logs POD_NAME -c medusa

    Replace POD_NAME with the name of your pod.

  4. Increase the backup timeout if necessary by adjusting cluster resources.

  5. Consider scheduling backups during off-peak hours to reduce resource contention.

Incomplete backup across nodes

If the MedusaBackup status shows finishedNodes less than totalNodes, individual node failures, network issues, or storage problems might be preventing backup completion on specific nodes.

To resolve this issue, do the following:

  1. Identify which nodes failed to complete the backup:

    kubectl get medusabackup BACKUP_NAME -o yaml | grep -A 20 status

    Replace BACKUP_NAME with the name of your backup job.

  2. Check the logs on failed nodes:

    kubectl logs FAILED_POD_NAME -c medusa

    Replace FAILED_POD_NAME with the name of the failed pod.

  3. Verify network connectivity and storage availability on affected nodes.

  4. Retry the backup operation after you resolve node-specific issues.

Create a backup schedule

Run a backup of a Cassandra, DSE, or HCD datacenter (DC) that uses a MedusaBackupJob CR in the same namespace and data plane where either the MissionControlCluster or cassandraDatacenter resource resides. This section describes scheduling a future backup activity.

To schedule an immediate backup of a datacenter in the cluster, see Create an immediate backup.

Use the UI
  1. Access Mission Control’s UI.

  2. Select your project, and then click the cluster name.

  3. Click the Backups tab, and then click Scheduled backups.

  4. Click Create scheduled backup.

  5. To schedule a future backup of the datacenter you choose,select Schedule recurring.

  6. Fill out the Cron expression.

  7. Choose the target datacenter.

  8. Click Create backup.

    To view notifications from the backup activity, see Monitor and troubleshoot backups.

Use the CLI

Choose the backup MedusaBackupSchedule custom resource definition (CRD) that matches your installation version. Mission Control uses your modified CR file with its cronSchedule expression to manage backup schedules:

  1. Create and modify a MedusaBackupSchedule CRD file.

    apiVersion: medusa.k8ssandra.io/v1alpha1
    kind: MedusaBackupSchedule
    metadata:
      name: medusa-backup-schedule
      namespace: demo-dc1
    spec:
      backupSpec:
        backupType: differential
        cassandraDatacenter: demo-dc1
      cronSchedule: 30 1 * * *
      disabled: false

    This resource must be created in the same data plane and namespace where the cassandraDatacenter resource resides. This example uses cassandraDatacenter: demo-dc1. The example schedules a backup of demo-dc1 every day at 1:30 AM.

    When specifying spec.cronSchedule, the * * * * * definitions from left to right indicate minute, hour, day of the month, month, day of the week. See cronSchedule specifications.

Stop a backup job or schedule

To remove a recurring backup schedule or stop an in-progress backup job, delete the corresponding CR.

Starting in Mission Control 1.20, deleting a MedusaBackupSchedule or MedusaBackupJob CR transitions the resource into a stopped state. In versions earlier than 1.20, deleting the CR removes the resource directly without setting it to a stopped state.

Stop a backup schedule

To stop a recurring backup schedule, delete the MedusaBackupSchedule CR:

  1. List existing backup schedules:

    kubectl get MedusaBackupSchedule
  2. Delete the backup schedule:

    kubectl delete MedusaBackupSchedule SCHEDULE_NAME

    Replace SCHEDULE_NAME with the name of the backup schedule from the previous command.

Stop an active backup job

Deleting a MedusaBackupJob CR stops operator reconciliation of the job, but it does not terminate backup processes already executing inside the medusa containers on the database pods. Once the CR is deleted or stopped, operator status tracking is no longer available.

To stop an active backup job:

  1. List active backup jobs:

    kubectl get MedusaBackupJob
  2. Delete the backup job CR:

    kubectl delete MedusaBackupJob BACKUP_JOB_NAME

    Replace BACKUP_JOB_NAME with the name of the backup job from the previous command.

  3. To monitor ongoing backup activity in the medusa containers after the CR is deleted, tail the container logs on each database pod:

    kubectl logs -f POD_NAME -c medusa

    Replace POD_NAME with the name of the database pod.

  4. To immediately terminate the ongoing backup instead of waiting for container processes to finish, restart the affected database pods:

    kubectl delete pod POD_NAME

    Replace POD_NAME with the name of the database pod.

    Restart database pods one at a time to maintain cluster availability and avoid quorum loss.

See the release-specific list of CRD backup files with their properties for the following:

  • MedusaBackupJob

  • MedusaBackup

  • MedusaBackupSchedule

See also

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | Privacy policy | Terms of use |  Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM