Linux backup
StackState Self-hosted v5.1.x
Last updated
StackState Self-hosted v5.1.x
Last updated
To back up 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.
StackState topology and configuration data are stored in StackGraph. To create a backup of StackGraph data on a :
Make sure that StackGraph is up and running.
Stop the StackState node using sudo systemctl stop stackstate.service
.
Use one of the following commands to start the backup process:
To avoid the unexpected loss of existing data, a backup can only be restored on a clean environment by default. If you are completely sure that any existing data can be overwritten, you can override this safety feature by using the command -force
. Only execute the restore command when you are sure that you want to restore the backup.
To restore previously backed up topology data:
Make sure that StackGraph is up and running.
Stop the StackState node using sudo systemctl stop stackstate.service
. 3a. Run the restore from a specified backup file on a clean environment:
3b. Run the restore from a specified backup file on an environment with existing data:
Track progress of the restore in the StackState log file <stackstate_installation_path>/var/log/stackstate.log
.
When the restore has successfully completed, start the StackState node using sudo systemctl start stackstate.service
.
StackState telemetry data is stored in Elasticsearch. To back up and restore Elasticsearch data we recommend to follow the .