Migrate to a new Kafka cluster without rebuilding it by hand
Topics, settings, ACLs, consumer groups, schemas: it is easy to forget one. Let Kurkik write down what the old cluster has, and apply it to the new one.
1. Add both clusters
Section titled “1. Add both clusters”kurkik conn add kafka old --bootstrap old-broker:9092 --testkurkik conn add kafka new --bootstrap new-broker:9092 --testIf you use a schema registry, give each connection its --registry-url.
2. Write down the old one
Section titled “2. Write down the old one”kurkik kafka export old --acls --groupsYou get old-kafka.yaml. Open it and check it is what you expect. It is also a good file to keep in Git.
3. See the plan
Section titled “3. See the plan”kurkik kafka sync old-kafka.yaml new --all --dry-runNothing changes. Read the plan, including the left alone part: that is what sync will not do, and why. Kafka itself checks the requests.
4. Apply
Section titled “4. Apply”kurkik kafka sync old-kafka.yaml new --allOn a fresh cluster sync only needs to create. If the new cluster already has some of these topics and you want them changed, add --overwrite.
5. Check nothing was forgotten
Section titled “5. Check nothing was forgotten”kurkik kafka diff old new --allChanged your mind?
Section titled “Changed your mind?”kurkik kafka sync history newkurkik kafka sync revert <snapshot> newGood to know:
- The new cluster needs enough brokers for the replication factors in the document.
- Consumer groups: Kafka cannot hold an empty group without settings, and no position is copied.
Try it first on the demo sandbox. Real output: full sync example.
Copyright © 2026 Pavel Bodiachevskii