aegis sync

Capture live system state back into managed config sources.

Usage

aegis sync [--module <NAME>]

Behavior

For each sync rule defined in module manifests, aegis compares the live file to the managed source and copies changes back:

[[sync_rules]]
live_path = "~/.bashrc"
managed_path = "bashrc"

Example

aegis sync
# ✓ Synced 2 config(s) from live system

aegis sync --module shell
# ✓ Everything in sync

After syncing, use git diff and git commit to version-control the captured changes.