Administrator storage, backup and restore
Recover an installation as a matched set of databases, files, configuration and release evidence. A package backup, workspace snapshot or session archive covers only part of that set.
Inventory the data before maintenance
Record the installation owner, intended root, hosting mode, original running/stopped state, release/Build ID, runtime identifier and profile lock. Resolve storage from the running configuration rather than assuming all state sits under the default data folder.
- Databases: sessions/admin/Features, action/entity semantic data and session-history semantic data. Record provider, database names, schema/release compatibility and which named connections share a database. Preserve complete persisted settings and data documents.
- Runtime and artifacts: the resolved sessions root, working documents, uploaded media and generated artifacts. Database-source mode stores session/history records in the database but still writes artifact bytes on disk and records their paths.
- Configuration and credentials: external role settings, launcher/service bindings, managed authentication profiles and the deployment's secret/key dependencies. Back these up under the deployment's access policy; publish only non-secret status in notes.
- Content and extensions: source ontology, local prompts/projects, install-owned agent profiles, extension manifests/receipts and exact package/profile identities. Package-owned content can be reproduced only while its exact release remains available.
- External dependencies: databases outside the root, browser profiles, mounted artifact storage and integration-owned state. Their owners need separate recovery procedures.
Use storage configuration to distinguish session persistence from provider selection. A SessionArtifacts record contains metadata/path information; it is not a substitute for the file itself.
Define retention and use the owning operations
Set retention periods and recovery objectives with the installation owner: how much recent work may be lost, how quickly service must return, and how long backups, history, media and logs must remain. Keep an off-install recovery copy and test access to it.
Archiving removes a session from normal active views; it is not physical erasure. The current session-management delete/archive path marks the session archived and removes active runtime bindings. SQL archive also removes session event subscriptions; the deterministic Level Two companion may be archived with its source. Unarchive clears the archive state but does not promise to recreate prior subscriptions or resume pending work.
Use the session owner's archive/unarchive operations for that scope. Timeline clearing is a separate destructive operation through the database-owned message/index transaction. Do not turn either action into a retention policy by deleting session folders or ad hoc rows. Physical erasure, legal retention and removal from backup copies require an explicit data-owner procedure covering related records, artifacts and recovery copies.
Changing session mode or database provider does not migrate data. Plan a transfer with source/destination identity, supported tooling, completeness checks and rollback; retain the source until accepted. A semantic reindex regenerates search data from source; it does not restore missing history, settings, artifacts or ontology definitions.
Create a recoverable backup set
- Identify the exact instance and affected data owners. Record an approved maintenance window or consistency method so related database and filesystem copies represent a usable recovery point. Process stop/restart permission remains specific to the target.
- Use the database owner's native SQL Server or PostgreSQL backup process. Include every distinct database identified above and the keys/permissions needed to restore it. Record backup completion and verification results, not merely that a job was scheduled.
- Back up the environment-owned configuration, required credential/key state, local content/profiles and resolved session/artifact roots. Include storage outside the install root. Record file-copy failures and exclusions.
- Retain the exact compatible runtime package, release manifest, profile lock, extension receipts, update history and service/hosting configuration. Keep database migration state with that evidence.
- Store the backup manifest separately from the installation. It should identify the time window, target, databases and file roots, exclusions, original service state, storage location, access owner and restore-test result without embedding secrets.
PostgreSQL recovery dependencies
Record the server/pgvector versions, vector-extension availability, database owners/roles and privileges needed at the restore target. Include each distinct sessions and action/entity semantic database; the Unix default maps session-history semantics into the sessions database through a separate named connection. Restore the matching complete provider settings and legacy connection aliases. A PostgreSQL Root backup does not add the SQL Server-only User-environment ownership support. Use use PostgreSQL for provider, bootstrap and registered-upgrade boundaries.
Know what built-in snapshots cover
Unix upgrade.sh backs up payload/config under work/updates and preserves data/logs in place. Those retained live files are not backup copies, and payload rollback does not reverse database upgrades. A project workspace snapshot made by WorkspaceBackupManager is also narrower: it skips DLLs and its heal manifest, and reports files skipped for I/O/access/state errors. Inspect its manifest and skipped-file list. Restoring a project snapshot can delete non-snapshot files; it is not a whole-install restore or database backup.
Restore into an isolated target first
- Select a matched recovery set and confirm compatibility of runtime, schema, profile and provider configuration. Preserve the failed target for diagnosis before overwriting it.
- Use a separate root, listener and database names. Restore through the database owner's supported restore process and restore the matching environment files. Do not point the test at live production databases or a sibling root.
- Rebind the restored target's role settings and process identity through their existing owners. Preserve unrelated settings. Check file paths in artifact records and any external storage mappings; a new root alone does not rewrite stored absolute paths.
- Keep scheduled jobs, queued actions, outbound messaging and public exposure inactive until their owners reconcile them. Restored pending work or old receipts must not automatically repeat an external operation.
- Validate below before any cutover. Restore only the processes that were running originally unless the approved recovery changes that state. A database recovery that is incompatible with the runtime needs a compatible package or an explicitly planned migration, not an arbitrary downgrade.
File rollback and database recovery are separate choices. Do not claim a rolled-back binary restores a database to its prior schema/data. General incident diagnosis and access decisions belong in troubleshooting and recovery.
Prove the recovery set works
- Confirm the test listener, root, database identities and release/profile match the recovery record; verify sibling installations were untouched.
- Read representative recent and older sessions with exact history and relationships. Check expected archived state and configuration values.
- Open representative artifacts/media and working documents. Compare expected files/counts or checksums using the backup manifest, and account for every exclusion.
- Check required Features and active settings without exposing credentials. Verify the selected provider, worker startup and a harmless authorized test response in the isolated environment.
- Check known action/entity discovery and session-history semantic matches against exact source/history. Treat a reindex as a separate operation if required.
- Record the actual recovery point, elapsed recovery time, failed checks and any work deliberately left disabled. Obtain the target owner's cutover decision only after those results are available.
A successful backup command is not a restore test. Keep the tested recovery procedure with the environment record and repeat it when storage layout or schema changes.