Push Event Backups
Push event backups let you automatically create a backup every time code is pushed to a repository. This ensures your latest changes are always protected.
How It Works
When push event backups are enabled for a repository, GitSec listens for push webhooks from your Git provider. Each time a push is detected, a backup is automatically triggered with your configured scope settings.
Enabling Push Event Backups
- Navigate to Repositories > GitHub in the sidebar.
- Click on the repository you want to configure.
- Go to the Push Event tab.
- Toggle the Enable switch to turn on push event backups.
- Under Included Items, select which scopes to include:
- Code & Commits
- Pull Requests
- Issues
tip
Push event backups are ideal for critical repositories where you need continuous protection. For less active repositories, a recurring scheduler may be more efficient.
Disabling Push Event Backups
To stop automatic backups on push:
- Open the repository detail page.
- Go to the Push Event tab.
- Toggle the switch off.
Existing backups created by push events will not be affected.
Push Events vs. Scheduled Backups
| Feature | Push Event | Scheduled |
|---|---|---|
| Trigger | Every git push | At a configured interval (minutely to monthly, or CRON) |
| Best for | Active repositories with frequent commits | Repositories with periodic changes |
| Frequency | As often as pushes occur | Based on configured interval (minutes to months) |
| Configuration | Per-repository toggle | Per-repository scheduler form |
Both methods can be used simultaneously on the same repository.