Skip to content

fix: write .bak files before modifying existing config files (#18)#26

Merged
peg merged 1 commit intomainfrom
fix/issue-18-bak-files
Mar 18, 2026
Merged

fix: write .bak files before modifying existing config files (#18)#26
peg merged 1 commit intomainfrom
fix/issue-18-bak-files

Conversation

@peg
Copy link
Copy Markdown
Owner

@peg peg commented Mar 18, 2026

Fixes #18.

Added writeBackup(path) helper that copies an existing file to <path>.snare.bak before any canary appends to it. On successful disarm, the .bak is deleted. Only created when the original file already exists — new files created by snare get no backup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@peg peg merged commit 2a8aea3 into main Mar 18, 2026
1 check passed
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.

feat: write .bak files before modifying existing config files

1 participant