---
title: "Breaking the Loop: How we migrated our backup catalog for 250+ MySQL clusters to AWS"
description: "Booking.com moved the Bacula backup catalog for 250+ MySQL clusters off its on-prem dbadb replication chain and onto Amazon RDS MySQL."
url: "https://swe.quest/articles/breaking-the-loop-how-we-migrated-our-backup-catalog-for-250-mysql-clusters-to-a99d4c43a779f0a9"
canonical: "https://medium.com/booking-com-development/breaking-the-loop-how-we-migrated-our-backup-catalog-for-250-mysql-clusters-to-aws-6f5a53a519b9"
source: "Booking.com Engineering"
published: "2026-02-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 21
tags: ["mysql","cloud","storage-systems","resilience","infrastructure-as-code"]
---

# Breaking the Loop: How we migrated our backup catalog for 250+ MySQL clusters to AWS

A post on [Booking.com Engineering](https://swe.quest/sources/booking.md), published 2026-02-19, 21 min read, Case study. Original: [https://medium.com/booking-com-development/breaking-the-loop-how-we-migrated-our-backup-catalog-for-250-mysql-clusters-to-aws-6f5a53a519b9](https://medium.com/booking-com-development/breaking-the-loop-how-we-migrated-our-backup-catalog-for-250-mysql-clusters-to-aws-6f5a53a519b9)

## Summary

Booking.com moved the Bacula backup catalog for 250+ MySQL clusters off its on-prem dbadb replication chain and onto Amazon RDS MySQL. The move removes a circular dependency: Bacula could not automatically restore the database that held its own catalog. The work became a "3-in-1" side-by-side migration, combining an OS upgrade from CentOS 8 to Oracle Linux 9, an upgrade from Bacula v12 to v16, and the database move. A new stack was built greenfield and ran in parallel with the old one past the backup retention window, instead of using replication-based data migration. The team provisioned RDS with the same Terraform modules customer teams use and extended them for cross-region replicas, since RDS is multi-AZ but not multi-region.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md) (Infrastructure)

## Prerequisites

- MySQL replication ([easy posts on MySQL](https://swe.quest/tags/mysql.md?difficulty=easy))
- database backups and restore ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- AWS RDS basics ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))

## Keywords

Bacula, Amazon RDS, MySQL, Terraform, Oracle Linux 9, Amazon Aurora

## Related posts

- [What it Takes to Recover a 100 TB Postgres Database in AWS RDS](https://swe.quest/articles/what-it-takes-to-recover-a-100-tb-postgres-database-in-aws-rds-059ecd5d0236e5ed.md): Neon · 2025-02-04 · Easy · 7 min read · PostgreSQL, Replication, Cloud platforms, Resilience
  Recovering a 100 TB Postgres database on AWS RDS is slow or incomplete depending on the failure mode.
- [You can now migrate your existing databases to AWS](https://swe.quest/articles/you-can-now-migrate-your-existing-databases-to-aws-664f4db954322a62.md): Turso · 2025-05-12 · Medium · 4 min read · SQLite, Databases, Cloud platforms
  Turso paid-plan users can move database groups from Fly.io to AWS with new \`turso group aws-migration info/start/abort\` CLI commands; free-tier users have already been migrated.
- [How we migrate TBs from Heroku without logical replication](https://swe.quest/articles/how-we-migrate-tbs-from-heroku-without-logical-replication-e0568c616a878849.md): PlanetScale · 2026-11-11 · Medium · 12 min read · PostgreSQL, Schema migrations, Replication, Networking
  PlanetScale's open-source Heroku Migrator moves multi-terabyte Postgres databases off Heroku standard plans, which lack WAL access and logical replication, by using Bucardo trigger-based replication: triggers record changes in delta tables, a one-time COPY loads existing data, and a worker replays the backlog before a controlled switchover with verification.
- [Zero-Copy Migration: How Yelp Moved Its Cassandra Fleet Between Kubernetes Clusters](https://swe.quest/articles/zero-copy-migration-how-yelp-moved-its-cassandra-fleet-between-kubernetes-0d6b3f088cd34645.md): Yelp Engineering · 2026-11-09 · Medium · 12 min read · Kubernetes, Distributed databases, Storage systems, Cloud platforms, Refactoring & migrations
  Yelp moved roughly 1000 Cassandra pods and nearly a petabyte of data from self-managed Kubernetes clusters to Amazon EKS without streaming any data.
- [Breaking up a monolith: How we’re unwinding a shared database at scale](https://swe.quest/articles/breaking-up-a-monolith-how-we-re-unwinding-a-shared-database-at-scale-4f34dacf50e040a9.md): Datadog Engineering · 2025-06-17 · Medium · 20 min read · PostgreSQL, Schema migrations, Refactoring & migrations, Microservices, Replication
  Datadog is splitting its large shared Postgres database into independently owned instances through a three-phase plan: logical separation into per-domain private schemas with explicit ACLs, access reduction so only owning teams query their tables directly, and physical separation onto managed OrgStore instances.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
