Module migrate

Module migrate 

Source
Expand description

Node migration between HSM groups.

backup and restore are thin service wrappers so handlers can comply with the CLAUDE.md boundary rule (handlers → service → backend, never handlers → backend directly). Only migrate_nodes carries real orchestration (hosts-expression resolution, HSM-group curation, per-pair member migration).

Migration is a (target × parent) fan-out: for every requested target group, every parent group the resolved xnames actually belong to is paired with it and the backend migrate_group_members call is issued. Nodes that don’t live in one of the named parents are silently skipped, which keeps the call idempotent when a hosts expression is re-run.

Structs§

NodeMigrationResult
Result of migrating nodes for a single parent→target pair.

Functions§

backup
Export BOS session templates (and related artifacts) to backup files.
migrate_nodes
Move the nodes resolved from hosts_expression out of any group in parent_name_vec and into every group in target_group_name_vec.
restore
Restore BOS session templates and related artifacts from backup files.