Skip to main content

Upgrade, backup, restore, and uninstall

Inventory and cold backup​

Record the exact version, package variant, asset digest, active services, and destination policy without logging secrets. Stop only the active components and archive /etc/spot, /var/lib/spot, and /var/lib/spot-agent-sap; for portable, archive config, data, and run. Include local Elasticsearch data only for the embedded suite. External cluster snapshots belong to its operator.

Generate and verify sha256sum BACKUP > BACKUP.sha256, store the backup outside the updated tree, and restart exactly the components that were active.

Do not exclude /var/lib/spot/license: it contains the installed license, verifiable history, and local identity for that installation. Portable keeps them below $SPOT_HOME/data/license. Restoring them together preserves continuity; never copy that state to another host. If the change coincides with a renewal, first generate a new package as described in Licenses and renewal.

Do not exclude /var/lib/spot/targets/catalog.json. It contains no credentials, but preserves every SAP identity and binding, including temporarily silent targets. Restore it together with spot.yaml; upgrades and uninstall preserve it.

Do not exclude /var/lib/spot/spot-auth.db: it contains local users, roles, session versions, and known AD identities. Restore it together with the same SPOT_JWT_SECRET; generating another secret ends every session and requires a new sign-in. The package preserves the database during upgrade, reinstall, and normal uninstall.

Upgrade​

Upgrade the same package name with rpm -Uvh or dpkg -i. The transaction replaces executable trees with clean root-owned payload and restarts only previously active services. It also removes reserved loader and package-identity variables from inherited spot.env files. Mutable configuration and data remain; foreign files inserted into old code trees do not.

The embedded suite follows package dependencies: Elasticsearch starts before the backend and agent. The agent does not attempt bootstrap before the local Elasticsearch service has been started.

For the embedded suite, /etc/spot/elasticsearch is executable JVM configuration and is restored from trusted package defaults during upgrade. Use SPOT-supported settings instead of adding JVM files there. Indices remain under /var/lib/spot/elasticsearch and are included in the cold backup. Portable upgrades use a new directory and keep the previous generation until health and ingestion pass.

After upgrading from a version without the IDoc history (days) setting (collections.idocs.historyDays), the default of 21 days applies from the first start: SPOT stops following the IDocs created before that range, and what was already stored stays in the destination. To keep more history, set a larger value; you can set it before upgrading, because earlier versions ignore the key. The IDocs rollback rule is unchanged. See Sources and collections.

Restore and rollback​

Test restore on the same version and variant: install that package first, keep services stopped, verify the backup, restore state and ownership, then validate health and ingestion. For rollback, install the previous package before restoring its compatible backup. If the IDocs collection is enabled, disable it before the rollback and keep it disabled while the earlier version is installed: an earlier version cannot continue IDoc progress saved by a newer one.

Embedded to external uses the assistant and does not move history. External to embedded requires backup, uninstall, and a fresh spot-suite install; portable uses a new $SPOT_HOME.

Normal uninstall preserves configuration and data. Purge is a separate, destructive operation performed only after verifying the backup and exact SPOT paths. Recovery starts by reinstalling the same version and variant.

Checks when upgrading to 2.0.11​

Review these points in addition to the backup procedure and installed package variant:

  • Customized AI limits: use ai.agent.chat and ai.agent.report, with timeout, max_rounds, max_tool_calls and tool_timeout. Earlier flat timeout, round and call keys are ignored. Defaults are 120 seconds, 5 rounds and 16 calls for chat; 12 minutes, 10 rounds and 48 calls for reports. Per-tool limits are 25 and 60 seconds, respectively. Previously stored reports remain readable.
  • Certificates on unmanaged Elasticsearch: the administrator must check searchable generation/catalog fields in the template and every retained index. certificate_inventory_template_update_required pauses only certificates until the contract is corrected. SPOT does not change mappings with manage_data_streams_ilm: false. Do not enable storage management merely to hide that warning.
  • Connector state: preserve cursors, generations, Programs progress and its late-arrival pass with the rest of the state. After returning to an older binary, normal collection can continue but a delayed re-read may be absent; the older binary does not process the new delayed queue. The legacy replay option belongs to 2.0.11 and does not guarantee a complete delayed backlog replay either.
  • Logs and activity: fewer repeated success messages are expected. Check activity and progress rather than log volume alone. Official wrappers set the state path; when launching daemon and backend directly without them, set the same SPOT_AGENT_SAP_STATE_DIR for both so they find the activity record.
  • Version check: confirm spot-agent-sap --version and, in suites, About → v2.0.11.

PSE discovery remains partial: an unread store is not an empty store. CCMS database availability does not establish native HANA monitoring. Performance changes reduce repeated work; their effect depends on the SAP system and must be checked for each installation.

Checks when upgrading to 2.0.12​

Preserve all state under /var/lib/spot-agent-sap or, for portable installations, $SPOT_HOME/data/spot-agent-sap. This includes Jobs cursors and progress; do not delete these files to clear a partial state. Install the same variant and check spot-agent-sap --version and, for suites, About → v2.0.12.

Check Jobs activity and progress across several cycles. Minimum 5-minute slices retain their pages when the budget runs out and resume after a restart. Verification and acknowledged delivery remain mandatory: if they cannot fit the available time, status stays partial. A recent heartbeat does not prove complete historical coverage.

Catch-up that started more than 3 hours behind retains historical execution records but collects Job Logs only for executions that ended within the last hour before each cycle cutoff. RFC failures truncated by row or time limits remain partial and are not declared recovered through absence. Check SAP permissions and connectivity if progress stalls; these fixes do not guarantee a fixed recovery time. Restore a backup compatible with the previous version when rolling back.

Checks for version 2.0.13​

After installing the same package variant, check About → v2.0.13 in the suite or query the connector version. Enable IDoc collection per SAP connection. If enabled, check coverage and recent activity under RFC / INT / IDocs. To roll back, disable the collection and restore a backup compatible with the earlier version.