> Markdown version of [/videos/757-integrating-backups-into-your-gitops-pipeline?t=1236](https://www.wearedevelopers.com/videos/757-integrating-backups-into-your-gitops-pipeline?t=1236). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Integrating backups into your GitOps Pipeline What happens when a faulty commit corrupts your database? Learn how to integrate automated pre-sync snapshots into your GitOps pipeline to instantly recover stateful applications without slowing deployments. - **Speakers:** Florian Trieloff - **Event:** World Congress 2023 - **Published:** October 6, 2023 - **Duration:** 25:24 - **URL:** https://www.wearedevelopers.com/videos/757-integrating-backups-into-your-gitops-pipeline ## Summary Modern GitOps workflows seamlessly handle stateless applications, allowing developers to rapidly deploy, tear down, and redeploy infrastructure continuously. However, persistent data from stateful services—such as databases and user-ingested content—presents a critical blind spot because it is not inherently captured by version control. When a faulty commit introduces a destructive database modification, simply rolling back the application code via Git will not restore the destroyed data. To bridge this gap, pipeline architects must integrate automated backups directly into Continuous Delivery (CD) workflows. By utilizing toolsets like Argo CD and Kasten K10, teams can configure pre-sync orchestration hooks that automatically execute storage snapshots before newly committed deployments are applied to the cluster. If a bad commit corrupts persistent volumes, the CD pipeline can rapidly revert to the pre-deployment snapshot via API calls, ensuring complete application recovery before the corrected code is synchronized. Treating data safety as a first-class citizen of the deployment pipeline eliminates manual backup interventions and organically protects the developer workflow. Because routine snapshotting operations process rapidly, they execute in seconds and won't bottleneck overall deployment velocity, even for larger enterprise datasets. Ultimately, bringing native programmatic restore capabilities into the CI/CD pipeline ensures that necessary stateful resources maintain the same agile, resilient recovery standards as stateless application code. **Keywords:** gitops pipeline integration, continuous delivery backups, stateful application management, kubernetes persistent volumes, argo cd pre-sync hooks, kasten k10 automation, database snapshot deployment, version control data limitations, ci/cd pipeline rollback, automated disaster recovery apis, cloud native storage management, devops infrastructure resilience, deployment risk mitigation, persistent data orchestration ## Chapters 1. **Moving from continuous integration to continuous delivery** (00:00) — Understanding the differences between stateless application deployment and managing persistent updates in production environments. 1. **Protecting persistent data in version-controlled setups** (02:38) — Databases and stateful services ingest inputs independent of application code and demand external backup mechanisms. 1. **Architecture of a GitOps backup pipeline demonstration** (06:02) — A test environment combining Kubernetes, Git repositories, Argo CD, and Kasten K10 highlights pre-sync protection workflows. 1. **Deploying a stateful application with automatic backups** (08:38) — Manually syncing a stock shop deployment triggers an automatic pre-sync backup job before persistent volumes provision. 1. **Simulating malicious database changes through bad commits** (13:19) — Pushing an incorrect SQL insert command illustrates how pipeline automation captures a recovery snapshot right before execution. 1. **Restoring persistent workloads and reapplying corrected code** (17:08) — Triggering an application restore reverts the damaged volume state before the pipeline safely syncs a fixed update. 1. **Connecting data protection routines directly to APIs** (20:36) — Treating database backup and restore operations as programmable pipeline steps ensures stateful workload reliability. 1. **Managing large volume snapshots and complex restore paths** (23:08) — Fast storage snapshots bypass the latency constraints of moving massive datasets during tight pre-sync deployment windows. ## Related Moments - [Designing continuous delivery workflows with GitOps state synchronization](https://www.wearedevelopers.com/videos/370-practical-tips-and-tricks-for-ci-cd-success) (from "Practical tips and tricks for CI/CD success") - [Introduction to GitOps and the Argo CD presentation](https://www.wearedevelopers.com/videos/108-get-ready-for-operations-by-pull-requests) (from "Get ready for operations by pull requests") - [Core principles and prerequisites of robust GitOps workflows](https://www.wearedevelopers.com/videos/372-a-practitioners-guide-to-gitops-introduction-principles-and-implementation) (from "A Practitioners Guide to GitOps - Introduction, Principles and Implementation") - [Maintaining repository tests in automated deployment pipelines](https://www.wearedevelopers.com/videos/839-three-and-a-half-ways-of-testing-your-repositories) (from "Three-and-a-half Ways of Testing your Repositories") - [Exploring the core benefits of adopting GitOps](https://www.wearedevelopers.com/videos/547-how-to-gitops-your-cluster-with-flux) (from "How to GitOps your cluster with Flux") - [Implementing continuous deployment architectures for data pipelines](https://www.wearedevelopers.com/videos/73-implementing-continuous-delivery-in-a-data-processing-pipeline) (from "Implementing continuous delivery in a data processing pipeline") ## Related Articles - [Building AI Solutions with Rust and Docker](https://www.wearedevelopers.com/magazine/494-building-ai-solutions-with-rust-and-docker) - [How Microsoft worked around a Git limitation to shrink a repository by 94%](https://www.wearedevelopers.com/magazine/499-how-microsoft-worked-around-a-git-limitation-to-shrink-a-repository-by-94) - [Now is the time for industrialized software development](https://www.wearedevelopers.com/magazine/601-now-is-the-time-for-industrialized-software-development) - [Exploring AI: Opportunities and Risks for Developers](https://www.wearedevelopers.com/magazine/522-exploring-ai-opportunities-and-risks-for-developers) ## Related Jobs - [Lead Cloud DevSecOps Engineer - Kubernetes](https://www.wearedevelopers.com/jobs/ext/1659167-lead-cloud-devsecops-engineer-kubernetes) at **BWI GmbH** - [Senior Data Engineer](https://www.wearedevelopers.com/jobs/ext/1589390-senior-data-engineer) at **Douglas GmbH** - [Devops Engineer](https://www.wearedevelopers.com/jobs/ext/1940926-devops-engineer) at **Bitpanda** - [Cloud Engineer](https://www.wearedevelopers.com/jobs/ext/652417-cloud-engineer) at **BWI GmbH** - [Platform Engineer (DevOps)](https://www.wearedevelopers.com/jobs/48264-platform-engineer-devops) at **WDW Consulting GmbH** - [Lead Software Engineer - Data Engineering](https://www.wearedevelopers.com/jobs/ext/2000968-lead-software-engineer-data-engineering) at **Dynatrace**