feat(deploy): add BKG save step to deploy workflow (#202)#32
Merged
Conversation
Piboonsak
approved these changes
Mar 22, 2026
Owner
Piboonsak
left a comment
There was a problem hiding this comment.
Auto-review: AC-1 through AC-5 passed. Extra files (git-hooks/pre-commit, guard-no-workflows.mjs) are low-risk dev guards. Approved. 2026-03-22T08:10:00Z
This was referenced Mar 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Describe the problem and fix in 2–5 bullets:
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
/data/.openclaw/openclaw.jsonto/data/openclaw-config-archive/bkg-{YYYYMMDD-HHmmss}-{sha}.json, updatebkg-latest.json, and rotate to the 10 newest snapshots.Security Impact (required)
Yes, explain risk + mitigation: New SSH-invoked script copies config locally on VPS; limited to existing deploy SSH access and local filesystem.Repro + Verification
Environment
Steps
Deploy OpenClaw (private secrets)workflow./data/openclaw-config-archive/.Expected
bkg-<timestamp>-<sha>.jsonfile exists andbkg-latest.jsonpoints to it; only 10 most recent snapshots retained.Actual
Evidence
Human Verification (required)
What you personally verified (not just CI), and how:
bash -n scripts/bkg-save.sh; inspected workflow wiring for health-gated invocation.Compatibility / Migration
Failure Recovery (if this breaks)
scripts/bkg-save.sh..github/workflows/deploy-openclaw-github-private-secrets.yml,scripts/bkg-save.sh./data/openclaw-config-archive/.Risks and Mitigations
unknownis explicit; still preserves timestamped snapshot.Original prompt