feat: off-site push, scheduling, verify, selective restore, curl|bash…#1
Merged
Merged
Conversation
… install
Adds five capabilities (v0.2.0), all zero-dependency and bash 3.2 / BSD safe:
- Integrity: every backup writes a <archive>.sha256 sidecar; new
`claude-backup verify` re-checks the gzip stream, checksum and path safety.
- Off-site copy: `--remote 'cmd:<command>'` and a `push` subcommand send a
backup through any command ({} = archive path); honours CLAUDE_BACKUP_REMOTE.
The archive path is passed to sh -c as a positional arg (data, not code).
- Scheduling: `claude-backup schedule [--daily|--weekly|--hourly] [--at HH:MM]`
via launchd (macOS) / systemd user timer / crontab fallback (Linux), plus
`--status` and `unschedule`. Scheduled args reject embedded newlines.
- Selective restore: `claude-restore --only <cat[,cat…]>` and `--list-contents`
(settings agents commands hooks skills mcp claude-md history plugins).
- Install: `install.sh` bootstraps its sources when piped (curl | bash);
overridable via CCB_REPO / CCB_REF.
Shared `_chk` helper moved into lib/common.sh. Completions, --help, README and
CHANGELOG updated. Four new test suites (verify, remote, selective restore,
schedule) with platform-faked schedulers; 96 tests pass, shellcheck clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
LuuOW
reviewed
Jun 14, 2026
LuuOW
left a comment
There was a problem hiding this comment.
Technical audit: Architecture and implementation verified for system integrity and engineering consistency.
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.
… install
Adds five capabilities (v0.2.0), all zero-dependency and bash 3.2 / BSD safe:
claude-backup verifyre-checks the gzip stream, checksum and path safety.--remote 'cmd:<command>'and apushsubcommand send a backup through any command ({} = archive path); honours CLAUDE_BACKUP_REMOTE. The archive path is passed to sh -c as a positional arg (data, not code).claude-backup schedule [--daily|--weekly|--hourly] [--at HH:MM]via launchd (macOS) / systemd user timer / crontab fallback (Linux), plus--statusandunschedule. Scheduled args reject embedded newlines.claude-restore --only <cat[,cat…]>and--list-contents(settings agents commands hooks skills mcp claude-md history plugins).install.shbootstraps its sources when piped (curl | bash); overridable via CCB_REPO / CCB_REF.Shared
_chkhelper moved into lib/common.sh. Completions, --help, README and CHANGELOG updated. Four new test suites (verify, remote, selective restore, schedule) with platform-faked schedulers; 96 tests pass, shellcheck clean.