mirror of
https://github.com/sol1/rustguac.git
synced 2026-09-11 01:55:38 +00:00
93cc3493bb
Copies an address-book scope subtree (entries + every folder's .config, so allowed_groups/inherit_from_parent come along) between two configured backends, resolving each from config + its VAULT_*_SECRET_ID. Because the scope->path layout is identical in every backend, this is a same-identity server-to-server copy, not a path rewrite. Flags: --scope shared|instance, --from/--to (vault|vault_shared| vault_local), --dry-run, skip-existing by default with --overwrite, and --users to bulk-copy users/* (documented as "makes them shared"). Exits non-zero if any copy fails. Adds get/put_user_credentials_by_key and list_user_keys to VaultClient for the --users path.