• Glossary
  • Support
  • Downloads
  • DataStax Home
Get Live Help
Expand All
Collapse All

DataStax Enterprise Upgrade Guide

    • About upgrading
    • Supported & compatible versions
    • Upgrading DSE
      • Planning your DSE upgrade
      • Upgrades for patch releases
        • 6.8.x patch releases
        • 6.0.x patch releases
        • 5.1.x patch releases
        • 5.0.x patch releases
        • 4.8.x patch releases
      • Upgrading DSE 6.7 to 6.8
      • Upgrading DSE 6.0 to 6.8
      • Upgrading DSE 5.1 to 6.8
      • Upgrading DSE 5.0 to 6.8
      • Upgrading DSE 5.0 to 5.1
      • Upgrading from DataStax Installer
    • Upgrading to earlier versions
      • Upgrading DSE 5.1 to 6.0
      • Upgrading DSE 5.0 to 6.0
      • Upgrading to DSE 5.0
        • Upgrading from DSE 4.7 to 4.8
      • Upgrading to DSE 4.7 or 4.8
      • Upgrading to DSE 4.6
      • Upgrading to DSE 4.0 or 4.5
      • Upgrading to DSE 3.2
        • Upgrading from DSE 3.0 to 3.2
        • Upgrading from DSE 2.2 to 3.2
      • Upgrading 5.1 using the DataStax installer
    • Backing up and restoring DSE
      • Backing up a package installation
      • Backing up a tarball installation
      • Restoring a DSE package installation from backup
      • Restoring a DSE tarball installation from backup
        • Upgrading Apache Cassandra
    • Upgrading Apache Cassandra to DSE
    • Upgrading Apache Cassandra
      • Upgrading OpsCenter
    • Before upgrading OpsCenter
    • DSE OpsCenter upgrade instructions
      • Upgrading package installations
      • Upgrading tarball installations
      • Upgrading when failover is enabled
      • Upgrading DataStax Agents
        • Upgrading DataStax Studio
        • Upgrading the DataStax AMI
  • DataStax Enterprise Upgrade Guide
  • Backing up and restoring DSE
  • Restoring a DSE tarball installation from backup

Restoring a Tarball from Backup

Restore a previous DSE version from a tarball install.

  1. Stop the DSE service if it is running.

    /<installation_location>/bin/dse cassandra-stop
  2. Remove the existing DSE installation directory.

    rm -rf /<installation_location>/
  3. Completely purge any existing data or configuration directories and files.

    sudo rm -rf /var/lib/cassandra
    sudo rm -rf /var/log/cassandra
    sudo rm -rf /var/log/spark ## If using Spark
    sudo rm -rf /var/lib/spark ## If using Spark
    sudo rm -rf /var/lib/dsefs ## If using DSEFS

    The directories above are the default. If you have customized your installation directories, make appropriate adjustments to the paths.

  4. Reinstall the old version as described in the documentation for that release of DataStax Enterprise.

    Do not start DSE after installation.

  5. Extract your backup to the root of your drive.

    sudo tar -xvf /backup_path/backup_archive_name.tar -C /
  6. Move the snapshot files up two levels to their keyspace directories. Replace snapshot_name with the name of the snapshot created during the backup.

    sudo find /var/lib/cassandra/data -mindepth 2 -path '*/snapshots/snapshot_name/*' -type f \
    -exec bash -c 'dir={} && cd ${dir%/*} && mv {} ../..' \;

    The directory shown in the previous command is the default. If you customized your installation directories, then make appropriate adjustments to the path.

    If you cannot remember the snapshot name, you can find it by browsing the tar archive.

  7. Restore permissions.

    sudo chown dse_username:dse_group /var/lib/cassandra

    The directory shown in the previous command is the default. If you customized your installation directories, then make appropriate adjustments to the path.

  8. Start DSE.

    /<installation_location>/bin/dse cassandra
  9. If you are using DSE Search, rebuild the index (5.1).

Restoring a DSE package installation from backup Upgrading Apache Cassandra

General Inquiries: +1 (650) 389-6000 info@datastax.com

© DataStax | Privacy policy | Terms of use

DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.

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.

landing_page landingpage