Skip to content

fix: expose the rustic command to hooks - #1859

Closed
magrathean-uk wants to merge 2 commits into
rustic-rs:mainfrom
magrathean-uk:fix/issue-1578
Closed

fix: expose the rustic command to hooks#1859
magrathean-uk wants to merge 2 commits into
rustic-rs:mainfrom
magrathean-uk:fix/issue-1578

Conversation

@magrathean-uk

Copy link
Copy Markdown
Contributor

Fixes #1578

Sets RUSTIC_COMMAND for hooks based on the top-level rustic subcommand, including backup snapshot hooks. This makes hook scripts able to distinguish backup, restore, copy, and other command contexts reliably.

Validation: cargo fmt; cargo check --locked.

@magrathean-uk magrathean-uk closed this by deleting the head repository Aug 19, 2026
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.

[Feature Request] Expose more environment variables to hooks

1 participant