Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add user configurable command hooks for backup lifecycle events #60

Merged
merged 12 commits into from
Jan 29, 2024

Conversation

garethgeorge
Copy link
Owner

Backup hooks are configurable on a per-repo or per-plan basis and can be created / updated through the WebUI.

This PR adds initially contributes a single hook type: command hooks. Command hooks run shell scripts in response to lifecycle events. The scripts are configurable as golang templates.

An example script is:

#! /bin/bash
echo {{ .ShellEscape .Summary }}

@garethgeorge garethgeorge changed the title feat: implement hooks on backup lifecycle events feat: add user configurable command hooks for backup lifecycle events Jan 29, 2024
@garethgeorge garethgeorge merged commit 9be413b into main Jan 29, 2024
1 check passed
@garethgeorge garethgeorge deleted the garethgeorge/hooks branch April 14, 2024 08:41
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.

1 participant