ScyllaDB University LIVE, FREE Virtual Training Event | March 21
Register for Free
ScyllaDB Documentation Logo Documentation
  • Deployments
    • Cloud
    • Server
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
    • Supported Driver Versions
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Install
Search Ask AI
ScyllaDB Docs ScyllaDB Manual ScyllaDB for Administrators Procedures Backup and Restore Procedures Backup your Data
For AI agents: a documentation index is available at https://docs.scylladb.com/manual/master/llms.txt. A Markdown version of this page is at https://docs.scylladb.com/manual/master/operating-scylla/procedures/backup-restore/backup.md.

Caution

You're viewing documentation for an unstable version of ScyllaDB Manual. Switch to the latest stable version.

Backup your Data¶

Even though ScyllaDB is a fault-tolerant system, it is recommended to regularly back up the data to external storage.

  • Snapshot-based backup is a per-node procedure. Make sure to back up each node in your cluster. To back up the whole cluster from one node, use the cluster-wide Native Backup, or ScyllaDB Manager, which orchestrates backup and restore across the cluster.

  • Backup works the same for non-encrypted and encrypted SStables. You can use Encryption at Rest without affecting the backup procedure.

You can choose one of the following:

  • Full Backup - Copy the entire data of a node.

  • Incremental Backup - Updates (delta) - flushed SSTables.

  • Native Backup - ScyllaDB uploads the SSTables of a snapshot to S3-compatible object storage, cluster-wide or per node.

Full Backup - Snapshots¶

Snapshots are taken using nodetool snapshot. First, the command flushes the MemTables from memory to SSTables on disk, and afterward, it creates a hard link for each SSTable in each keyspace and table. Over time, as SSTables are compacted, the original files remain hard-linked from the snapshot directories, so snapshots hold an increasing amount of disk space. It is important to clear space by cleaning unnecessary snapshots.

Procedure

1. Data can only be restored from a snapshot of the table schema, where data exists in a backup. Backup your schema, roles, permissions
and service levels with the following command:
$: cqlsh -e "DESC SCHEMA WITH INTERNALS AND PASSWORDS" > <schema_name.cql>
For example:
$: cqlsh -e "DESC SCHEMA WITH INTERNALS AND PASSWORDS" > db_schema.cql
The command can only be executed by a superuser.

Warning

To get a proper schema description, you need to use cqlsh at least in version 6.0.23. Restoring a schema backup created by an older version of cqlsh may lead to data resurrection or data loss. To check the version of your cqlsh, you can use cqlsh --version.

See the relevant article to learn more.


2. Take a snapshot, including every keyspace you want to backup.
$ nodetool snapshot <KEYSPACE_NAME>
For example:
$ nodetool snapshot mykeyspace
The snapshot is created under ScyllaDB data directory /var/lib/scylla/data
It will have the following structure:
keyspace_name/table_name-UUID/snapshots/snapshot_name
For example:
/mykeyspace/team_roster-91cd2060f99d11e6a47a000000000000/snapshots/1487847672222

Note

By default, nodetool names the snapshot after the current time, in milliseconds since the Unix epoch. To choose the name (a.k.a. tag), list the keyspaces to snapshot, or set a TTL after which the snapshot is deleted automatically, see nodetool snapshot. nodetool cluster snapshot takes the snapshot on all nodes of the cluster with one command.

Note

Each snapshot directory also contains a schema.cql file with the CREATE statement of its table, including the table’s dropped columns. It describes that one table only, and does not include the keyspace, roles, permissions, or service levels, so it does not replace step 1.

Repeat these steps on each node in the cluster.

Incremental Backup¶

Enabling the incremental backup (disabled by default) will create a hard-link from each SSTable, right after it is flushed, to a backups directory.
For a complete point in time backup, the following is required:
  • A snapshot

  • All incremental backups and commit logs from the time of the snapshot.

  • Make sure to delete unnecessary incremental backups. ScyllaDB does not do this automatically.

Procedure

1. In the /etc/scylla/scylla.yaml file set the incremental_backups parameter to true and restart the ScyllaDB service. From now on, flushed SSTables are hard-linked under ScyllaDB data directory /var/lib/scylla/data
into a directory with the following structure:
keyspace_name/table_name-UUID/backups
For example:
/mykeyspace/team_roster-91cd2060f99d11e6a47a000000000000/backups

Native Backup¶

With native backup, ScyllaDB itself uploads the SSTables of a snapshot to S3-compatible object storage (AWS S3 or Google Cloud Storage). The upload runs inside the node, so its disk, CPU and network usage is scheduled and throttled like the rest of the node’s work, and no external tool needs access to the data directory. See Backup and Restore Overview for how native backup compares with uploading through the ScyllaDB Manager agent, and for the options that limit its I/O throughput.

The object storage endpoint must be configured on the nodes first, as described in Configuring Object Storage.

Native backup uploads the SSTables of the snapshot, not the schema. Back up the schema separately with DESC SCHEMA WITH INTERNALS AND PASSWORDS, as in the Full Backup procedure, so that it can be recreated before the data is restored.

Cluster-wide backup¶

The whole cluster can be snapshotted and backed up from one node, with nodetool cluster snapshot and nodetool cluster backup. The cluster snapshot is taken on all nodes and recorded in the system_distributed keyspace, and the backup then has each node upload its own SSTables to the location given for its datacenter.

Cluster backup is designed for tablet-based keyspaces, and stores a single copy of the repaired data. For each tablet, SSTables whose data is covered by the tablet’s last repair are uploaded from one replica only, since the other replicas hold the same data. SSTables holding data that is not covered by that repair, because they were never repaired or were last repaired before it, are uploaded from every replica. The backup manifest records the replicas that were skipped, so that a restore repopulates all of them. To get the most out of this, run nodetool cluster repair before taking the snapshot.

The backup is laid out as follows under the prefix of each location: the SSTables go under sstables/, and the manifest of each table goes to snapshots/<keyspace_name>/<table_name>/<snapshot_name>/manifest.json.

Procedure

On any node, run:

nodetool cluster snapshot --tag mysnapshot mykeyspace
nodetool cluster backup --location mydc,s3.us-east-2.amazonaws.com,bucket-foo,backups/mysnapshot --snapshot mysnapshot --keyspaces mykeyspace

Repeat the --location option for each datacenter the keyspace replicates to. If the snapshot does not exist yet, nodetool cluster backup takes it, so the first command is optional. A backup that failed part-way can be run again with the same parameters; SSTables that were already uploaded are skipped. With --move-files, each node deletes the SSTable files it uploaded from its local disk. Unlike the per-node backup, the other snapshot files, such as manifest.json and schema.cql, stay in the snapshot directory until the snapshot is cleared.

To restore, see Restore a cluster backup.

Per-node backup¶

nodetool backup copies the SSTables of one table, from a snapshot taken on the node it runs on, to a bucket and prefix of your choice. Run it on each node, with a prefix that identifies the node and the snapshot, so that each node’s backup can be told apart and restored on its own. The snapshot’s manifest.json, listing the uploaded SSTables, is uploaded under the same prefix.

Procedure

On each node, take a snapshot of the keyspace, and back up each of its tables:

nodetool snapshot --tag mysnapshot mykeyspace
nodetool backup --endpoint s3.us-east-2.amazonaws.com --bucket bucket-foo --prefix node1/mysnapshot/team_roster \
  --keyspace mykeyspace --table team_roster --snapshot mysnapshot

With the --move-files option, the snapshot files are deleted from the local disk once they are uploaded, so the snapshot no longer holds disk space.

To restore, see Restore from object storage.

Additional Resources¶

  • ScyllaDB Snapshots

Was this page helpful?

PREVIOUS
Backup and Restore Procedures
NEXT
Restore from a Backup and Incremental Backup
  • Create an issue
  • Edit this page

On this page

  • Backup your Data
    • Full Backup - Snapshots
    • Incremental Backup
    • Native Backup
      • Cluster-wide backup
      • Per-node backup
    • Additional Resources
ScyllaDB Manual
Search Ask AI
  • master
    • master
    • 2026.4
    • 2026.3
    • 2026.2
    • 2026.1
    • 2025.4
    • 2025.3
    • 2025.2
    • 2025.1
  • Getting Started
    • Install ScyllaDB 2026.3
      • Launch ScyllaDB 2026.3 on AWS
      • Launch ScyllaDB 2026.3 on GCP
      • Launch ScyllaDB 2026.3 on Azure
      • Launch ScyllaDB 2026.3 on Oracle Cloud Infrastructure (OCI)
      • ScyllaDB Web Installer for Linux
      • Install ScyllaDB 2026.3 Linux Packages
      • Run ScyllaDB in Docker
      • Install ScyllaDB Without root Privileges
      • Air-gapped Server Installation
      • ScyllaDB Developer Mode
    • Configure ScyllaDB
    • ScyllaDB Configuration Reference
    • ScyllaDB Requirements
      • System Requirements
      • OS Support
      • Cloud Instance Recommendations
      • ScyllaDB in a Shared Environment
    • Migrate to ScyllaDB
      • Migration Process from Cassandra to ScyllaDB
      • ScyllaDB and Apache Cassandra Compatibility
      • Migration Tools Overview
    • Integration Solutions
      • Integrate ScyllaDB with Spark
      • Integrate ScyllaDB with KairosDB
      • Integrate ScyllaDB with Presto
      • Integrate ScyllaDB with Elasticsearch
      • Integrate ScyllaDB with Kubernetes
      • Integrate ScyllaDB with the JanusGraph Graph Data System
      • Integrate ScyllaDB with DataDog
      • Integrate ScyllaDB with Kafka
      • Integrate ScyllaDB with IOTA Chronicle
      • Integrate ScyllaDB with Spring
      • Shard-Aware Kafka Connector for ScyllaDB
      • Install ScyllaDB with Ansible
      • Integrate ScyllaDB with Databricks
      • Integrate ScyllaDB with Jaeger Server
      • Integrate ScyllaDB with MindsDB
  • ScyllaDB for Administrators
    • Administration Guide
    • Procedures
      • Cluster Management
      • Backup & Restore
      • Change Configuration
      • Maintenance
      • Best Practices
      • Benchmarking ScyllaDB
      • Migrate from Cassandra to ScyllaDB
    • Security
      • ScyllaDB Security Checklist
      • Enable Authentication
      • Enable and Disable Authentication Without Downtime
      • Creating a Superuser
      • Generate a cqlshrc File
      • Reset Authenticator Password
      • Enable Authorization
      • Grant Authorization CQL Reference
      • Certificate-based Authentication
      • Certificate or Password Authentication
      • Role Based Access Control (RBAC)
      • ScyllaDB Auditing Guide
      • Encryption: Data in Transit Client to Node
      • Encryption: Data in Transit Node to Node
      • Generating a self-signed Certificate Chain Using openssl
      • Configure SaslauthdAuthenticator
      • Encryption at Rest
      • LDAP Authentication
      • LDAP Authorization (Role Management)
      • Software Bill Of Materials (SBOM)
    • Admin Tools
      • Nodetool Reference
      • CQLSh
      • Admin REST API
      • Tracing
      • ScyllaDB SStable
      • ScyllaDB SStable Script API
      • ScyllaDB Types
      • SSTableLoader
      • cassandra-stress
      • ScyllaDB Logs
      • Seastar Perftune
      • Virtual Tables
      • Reading mutation fragments
      • Maintenance socket
      • Maintenance mode
      • Task manager
      • Compression Advisor
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
    • ScyllaDB Manager
    • Upgrade Procedures
      • Upgrade Guides
    • System Configuration
      • System Configuration Guide
      • scylla.yaml
      • ScyllaDB Snitches
      • Configuration Parameters
    • Benchmarking ScyllaDB
    • ScyllaDB Diagnostic Tools
  • ScyllaDB for Developers
    • Develop with ScyllaDB
    • Tutorials and Example Projects
    • Learn to Use ScyllaDB
    • ScyllaDB Alternator
    • ScyllaDB Drivers
  • CQL Reference
    • CQLSh: the CQL shell
    • Reserved CQL Keywords and Types (Appendices)
    • Compaction
    • Consistency Levels
    • Consistency Level Calculator
    • Data Definition
    • Data Manipulation
      • SELECT
      • Selecting an excerpt
      • INSERT
      • UPDATE
      • DELETE
      • BATCH
    • Data Types
    • Definitions
    • Global Secondary Indexes
    • Expiring Data with Time to Live (TTL)
    • Functions
    • CQL Guardrails
    • Wasm support for user-defined functions
    • JSON Support
    • Materialized Views
    • DESCRIBE SCHEMA
    • Configuring a Cluster with CQL
    • Service Levels
    • ScyllaDB CQL Extensions
  • Alternator: DynamoDB API in ScyllaDB
    • Getting Started With ScyllaDB Alternator
    • ScyllaDB Alternator for DynamoDB users
    • Alternator-specific APIs
    • Reducing network costs in Alternator
    • Alternator Vector Search
    • Alternator client libraries
  • Features
    • Lightweight Transactions
    • Global Secondary Indexes
    • Local Secondary Indexes
    • Materialized Views
    • Counters
    • Change Data Capture
      • CDC Overview
      • The CDC Log Table
      • Basic operations in CDC
      • CDC Streams
      • CDC Stream Changes
      • Querying CDC Streams
      • Advanced column types
      • Preimages and postimages
      • Data Consistency in CDC
    • Workload Attributes
    • Workload Prioritization
    • Backup and Restore
    • Incremental Repair
    • Automatic Repair
    • Vector Search
    • Full-Text Search
    • Pattern Search
  • ScyllaDB Architecture
    • Data Distribution with Tablets
    • ScyllaDB Ring Architecture
    • ScyllaDB Fault Tolerance
    • Consistency Level Console Demo
    • ScyllaDB Anti-Entropy
      • ScyllaDB Hinted Handoff
      • ScyllaDB Read Repair
      • ScyllaDB Repair
    • SSTable
      • ScyllaDB SSTable - 2.x
      • ScyllaDB SSTable - 3.x
    • Compaction Strategies
    • Raft Consensus Algorithm in ScyllaDB
    • Zero-token Nodes
  • Troubleshooting ScyllaDB
    • Errors and Support
      • Report a ScyllaDB problem
      • Error Messages
      • Change Log Level
    • ScyllaDB Startup
      • Ownership Problems
      • ScyllaDB will not Start
    • Cluster and Node
      • Handling Node Failures
      • Failure to Add, Remove, or Replace a Node
      • Failed Decommission Problem
      • Cluster Timeouts
      • Node Joined With No Data
      • NullPointerException
      • Failed Schema Sync
    • Data Modeling
      • ScyllaDB Large Partitions Table
      • ScyllaDB Large Rows and Cells Table
      • Large Partitions Hunting
      • Failure to Update the Schema
    • Data Storage and SSTables
      • Space Utilization Increasing
      • Disk Space is not Reclaimed
      • SSTable Corruption Problem
      • Pointless Compactions
      • Limiting Compaction
    • CQL
      • Time Range Query Fails
      • COPY FROM Fails
      • CQL Connection Table
    • ScyllaDB Monitor and Manager
      • Manager and Monitoring integration
      • Manager lists healthy nodes as down
    • Installation and Removal
      • Removing ScyllaDB on Ubuntu breaks system packages
  • Knowledge Base
    • Upgrading from experimental CDC
    • Compaction
    • Consistency in ScyllaDB
    • Counting all rows in a table is slow
    • CQL Query Does Not Display Entire Result Set
    • When CQLSh query returns partial results with followed by “More”
    • Run ScyllaDB and supporting services as a custom user:group
    • Customizing CPUSET
    • Decoding Stack Traces
    • Snapshots and Disk Utilization
    • DPDK mode
    • Debug your database with Flame Graphs
    • Efficient Tombstone Garbage Collection in ICS
    • How to Change gc_grace_seconds for a Table
    • Gossip in ScyllaDB
    • How does ScyllaDB LWT Differ from Apache Cassandra ?
    • Map CPUs to ScyllaDB Shards
    • ScyllaDB Memory Usage
    • NTP Configuration for ScyllaDB
    • POSIX networking for ScyllaDB
    • ScyllaDB consistency quiz for administrators
    • Recreate RAID devices
    • How to Safely Increase the Replication Factor
    • ScyllaDB and Spark integration
    • Increase ScyllaDB resource limits over systemd
    • ScyllaDB Seed Nodes
    • How to Set up a Swap Space
    • ScyllaDB Snapshots
    • ScyllaDB payload sent duplicated static columns
    • Stopping a local repair
    • System Limits
    • How to flush old tombstones from a table
    • Time to Live (TTL) and Compaction
    • ScyllaDB Nodes are Unresponsive
    • Update a Primary Key
    • Using the perf utility with ScyllaDB
    • Configure ScyllaDB Networking with Multiple NIC/IP Combinations
  • Reference
    • AWS Images
    • Azure Images
    • GCP Images
    • Configuration Parameters
    • Glossary
    • Limits
    • API Reference
      • Authorization Cache
      • Cache Service
      • Column Family
      • Commit Log
      • Compaction Manager
      • Endpoint Snitch Info
      • Error Injection
      • Failure Detector
      • Gossiper
      • Hinted Handoff
      • LSA
      • Messaging Service
      • Raft
      • Storage Proxy
      • Storage Service
      • Stream Manager
      • System
      • Task Manager Test
      • Task Manager
      • Tasks
    • Metrics
  • ScyllaDB FAQ
  • 2024.2 and earlier documentation
Docs Tutorials University Contact Us About Us
© 2026, ScyllaDB. All rights reserved. | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 23 Oct 2026.
Powered by Sphinx 9.1.1 & ScyllaDB Theme 1.10.0