Comment on page
Manually created topology backup
StackState Self-hosted v5.0.x
This page describes the process of exporting and importing manual topology data, i.e. components and relations that are not synchronized via StackPacks.
CLI: sts (new)
- 1.Create the export file:stac graph list --manual --ids Component Relation \| xargs \stac graph export --ids \> manual_topo.stj
- 2.Check the generated file
manual_topo.stjto make sure it contains a correct export of all your topology.
Breakdown of the export command used in the example above:
stac graph list --manual --ids Component Relationlists all ids of manually created components and relations.
| xargsconnects the
stac graph export --idsexports all graph nodes by ids.
> manual_topo.stjdumps the results in the file
⚠️ PLEASE NOTE - from StackState v5.0, the old
stsCLI is called
In a future release of StackState, the new
stsCLI will fully replace the
stacCLI. It is advised to install the new
stsCLI and upgrade any installed instance of the old
stac. For details see:
Command not currently available in the new
stsCLI. Use the
Manually created relations to synchronized components may fail on import if these synchronized components do not exist anymore.
sts graph import < manual_topo.stj