Linux backup
This page describes StackState version 4.1.
The StackState 4.1 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.1 version range to upgrade to a more recent release.
StackState prefers Kubernetes! In the future we will move away from Linux support. Read about installing StackState on Kubernetes.
To backup and restore StackState configuration and topology information we can use StackState's import and export functionality. StackState's configuration and topology data is stored in StackGraph. Telemetry information is stored in Elasticsearch.

Configuration and topology data

Backup

StackState topology and configuration data are stored in StackGraph. To create a backup of StackGraph data on a production setup:
  1. 1.
    Make sure that StackGraph is up and running.
  2. 2.
    Stop the StackState node using sudo systemctl stop stackstate.service.
  3. 3.
    Use one of the following commands to start the backup process:
    1
    # Backup to the default location `/opt/stackstate/backups/`:
    2
    /opt/stackstate/bin/sts-backup.sh
    3
    4
    # Specify a backup location:
    5
    /opt/stackstate/bin/sts-standalone.sh export \
    6
    --file <path_to_store_backup> \
    7
    --graph default
    8
    9
    # Note that the specified path must be writable for user/group `stackstate`.
    Copied!

Restore

To restore previously backed up topology data:
  1. 1.
    Make sure that StackGraph is up and running.
  2. 2.
    Stop the StackState node using sudo systemctl stop stackstate.service.
  3. 3.
    Run the restore form a specified backup file:
    1
    /opt/stackstate/bin/sts-standalone.sh import \
    2
    --file <path_to_backup_file> \
    3
    --graph default
    Copied!
  4. 4.
    Track progress of the restore in the StackState log file <stackstate_installation_path>/var/log/stackstate.log.
  5. 5.
    When the restore has successfully completed, start the StackState node using sudo systemctl start stackstate.service.

Telemetry data

StackState telemetry data is stored in Elasticsearch. To backup and restore Elasticsearch data we recommend to follow the Elasticsearch documentation.
Last modified 5mo ago