Skip to content

feat(modules): handle the config_backup command from NetPulse (#553) - #554

Merged
gnacho merged 1 commit into
mainfrom
feat/553-config-backup
Oct 21, 2026
Merged

gnacho merged 1 commit into
mainfrom
feat/553-config-backup

Conversation

@gnacho

@gnacho gnacho commented Oct 21, 2026

Copy link
Copy Markdown
Owner

NetPulse now offers a standalone "Backup config" action per unit (gnacho/netpulse#1462): the server sends a config_backup SSE command and the snapshot itself is agent-side. This wires the embedder side.

New SSE event handled by the embedded agent through the OnConfigBackup hook added in agent v1.5.6. The handler creates a fresh snapshot with the existing CreateSnapshot and pushes it to NetPulse through the existing PushLatestSnapshot path (push config + executor token). Failures (push not configured, push error) go to the log: from the server it is a best-effort action, same posture as the remote self-update reporting before #549.

CreateAndPushSnapshot keeps both steps injectable so the behaviour is testable without uci on the build host.

Closes #553

Create a fresh snapshot (CreateSnapshot) and push it through the
existing PushLatestSnapshot path when the embedded agent receives the
config_backup SSE event. Best-effort: failures go to the log.

Closes #553
@gnacho
gnacho merged commit 83d6b77 into main Oct 21, 2026
2 checks passed
@gnacho
gnacho deleted the feat/553-config-backup branch October 21, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle the config_backup agent command (snapshot + push to NetPulse)

1 participant