Enforcing GitHub Repository Backups with Rubrik and GitHub Actions

Apr 2, 2026

Your CI pipeline enforces tests, security scans, and policy checks before code hits production. But your backups? Still running on a schedule, completely disconnected from your deployments.

In this video, I'll walk you through how to use Rubrik's powerful APIs to build what I'm calling "Backup as Code": a GitHub Action that triggers an on-demand Rubrik snapshot of your GitHub repository every time code is merged into the main branch. We'll look at the action code, wire it up to a live repo, and watch the whole thing run end to end.

Links Mentioned:

GitHub Action: https://github.com/mwpreston/rubrik-on-demand-backup-action
Rubrik Explore Lab (hands-on): https://www.rubrik.com/explore

If a failed test can block a merge, a failed backup should too.