Scylla Documentation Logo Documentation
  • Server
    • Scylla Open Source
    • Scylla Enterprise
    • Scylla Alternator
  • Cloud
    • Scylla Cloud
    • Scylla Cloud Docs
  • Tools
    • Scylla Manager
    • Scylla Monitoring Stack
    • Scylla Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
Download
Menu

Caution

You're viewing documentation for a previous version of Scylla Manager. Switch to the latest stable version.

Scylla Manager Restore Extract schema from metadata

Extract schema from metadataΒΆ

Prerequisites

  1. You have the snapshot tag.

  2. The snapshot contains schema.tar.gz file.

Procedure

  1. List files located in snapshot you want to restore.

    sctool backup files -c my-cluster -L s3:backups -T sm_20191210145143UTC
    

    The first output line is a path to schemas archive, for example:

    s3://backups/backup/schema/cluster/ed63b474-2c05-4f4f-b084-94541dd86e7a/task_287791d9-c257-4850-aef5-7537d6e69d90_tag_sm_20200506115612UTC_schema.tar.gz      ./
    
  2. Download schema archive.

    aws s3 cp s3://backups/backup/schema/cluster/ed63b474-2c05-4f4f-b084-94541dd86e7a/task_287791d9-c257-4850-aef5-7537d6e69d90_tag_sm_20200506115612UTC_schema.tar.gz ./
    
  3. Extract CQL files from archive. This archive contains a single CQL file for each keyspace in the backup.

    tar -xzvf task_287791d9-c257-4850-aef5-7537d6e69d90_tag_sm_20200506115612UTC_schema.tar.gz
    
PREVIOUS
Restore
NEXT
Extract schema from system_schema keyspace
  • 2.3
    • 2.6
    • 2.5
    • 2.4
    • 2.3
    • 2.2
  • Install Scylla Manager
  • Install Scylla Manager Agent
  • Add a Cluster
  • Backup
    • Setup AWS S3
    • Setup S3 compatible storage
    • Setup Google Cloud Storage
    • Examples
  • Restore
    • Extract schema from metadata
    • Extract schema from system_schema keyspace
  • Repair
    • Repair faster
    • Repair slower
    • Examples
  • Health Check
  • CLI sctool
    • Global flags and variables
    • Cluster
    • Backup
    • Repair
    • Status
    • Suspend & Resume
    • Task
    • Version
  • Configuration Files
    • Scylla Manager Config
    • Scylla Manager Agent Config
  • Scylla Monitoring
  • Troubleshooting
  • Older Versions
  • Slack
  • Create an issue
  • Edit this page
Logo
Docs Contact Us About Us
Mail List Icon Slack Icon
© 2022, ScyllaDB. All rights reserved.
Last updated on 04 May 2022.
Powered by Sphinx 4.3.2 & ScyllaDB Theme 1.2.1