ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Server
  • Cloud
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Download
ScyllaDB Docs Scylla Manager Restore Restore schema for ScyllaDB 6.0/2024.2 or newer

Restore schema for ScyllaDB 6.0/2024.2 or newer¶

Note

Currently, ScyllaDB Manager supports only entire schema restoration, so --keyspace flag is not allowed.

Note

Currently, restoring schema containing alternator tables is not supported.

In order to restore ScyllaDB cluster schema use sctool restore with --restore-schema flag.
Please note that the term schema specifically refers to the data residing in the system_schema keyspace, such as keyspace and table definitions. All other data stored in keyspaces managed by ScyllaDB is restored as part of the restore tables procedure.
The restore schema procedure works with any cluster size, so the backed-up cluster can have a different number of nodes than the restore destination cluster.

Prerequisites¶

  • ScyllaDB Manager requires CQL credentials with

    • permission to create restored keyspaces.

  • No overlapping schema in restore destination cluster (see the procedure below for more details)

  • Restore destination cluster must consist of the same DCs as the backed up cluster (see the procedure below for more details)

Procedure¶

ScyllaDB Manager simply applies the backed up output of DESCRIBE SCHEMA WITH INTERNALS via CQL.

For this reason, restoring schema will fail when any restored CQL object (keyspace/table/type/…) is already present in the cluster. In such case, you should first drop the overlapping schema and then proceed with restore.

Another problem could be that restored keyspace was defined with NetworkTopologyStrategy containing DCs that are not present in the restore destination cluster. This would result in CQL error when trying to create such keyspace. In such case, you should manually fetch the backed-up schema file (see backup schema specification), change problematic DC names, and apply all CQL statements.

In case of an error, Manager will try to rollback all applied schema changes.

Was this page helpful?

PREVIOUS
Restore tables
NEXT
Restore schema for ScyllaDB 5.4/2024.1 or older
  • Create an issue
  • Edit this page

On this page

  • Restore schema for ScyllaDB 6.0/2024.2 or newer
    • Prerequisites
    • Procedure
Scylla Manager
  • 3.5
    • master
    • 3.5
    • 3.4
    • 3.3
  • Docker
  • Install ScyllaDB Manager
  • Install ScyllaDB Manager Agent
  • ScyllaDB Manager Upgrade
  • Compatibility Matrix
  • Add a Cluster
  • Backup
    • Setup Amazon S3
    • Setup S3 compatible storage
    • Setup Google Cloud Storage
    • Setup Azure Blob Storage
    • Examples
    • Specification
  • Restore
    • Restore tables
    • Restore schema for ScyllaDB 6.0/2024.2 or newer
    • Restore schema for ScyllaDB 5.4/2024.1 or older
    • Examples
  • Repair
    • Repair faster
    • Repair slower
    • Examples
  • Health Check
  • CLI sctool
    • Environment variables
    • Completion
    • Download files
    • Backup
    • Restore
    • Cluster
    • Info
    • Progress
    • Repair
    • Start
    • Status
    • Stop
    • Suspend & Resume
    • Tasks
    • Version
  • Configuration Files
    • Scylla Manager Config
    • Scylla Manager Agent Config
  • Swagger File
  • ScyllaDB Monitoring
  • Troubleshooting
  • Slack
Docs Tutorials University Contact Us About Us
© 2025, ScyllaDB. All rights reserved. | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 07 May 2025.
Powered by Sphinx 7.4.7 & ScyllaDB Theme 1.8.6