# Migration strategy

**URL:** <https://forum.keycloak.org/t/migration-strategy/14548>\
**Category:** Miscellanaeous\
**Created:** [March 24, 2022, 12:43pm UTC](https://forum.keycloak.org/t/migration-strategy/14548 "2022-03-24T12:43:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marco-lp](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@marco-lp](https://forum.keycloak.org/u/marco-lp)\
**Post date:** [March 24, 2022, 12:43pm UTC](https://forum.keycloak.org/t/migration-strategy/14548/1 "2022-03-24T12:43:40Z")

</div>

Hi all,

I have a customer who have keycloak 11.0.3 and he wants to migrate to 17.0.1 release

It’s a bare metal deployment on virtuals machines with terraform and ansible playbook (keycloak, postgresql, consul).

What is the best strategy for achieve this objective ?

Do you think that i can migrate release by release like this:

11.0.3 → 12.0 -\>13.0 → 14.0 → 15.0 → 16.0 → 17.0.1

Or deploy a new keycloak directly with the version 17.0.1 and restore the database from 11.0.3 plateform

Thanks a lot for your responses, i’m new about keycloak and english is not my first language

Regards  
Marco

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [March 24, 2022, 1:37pm UTC](https://forum.keycloak.org/t/migration-strategy/14548/2 "2022-03-24T13:37:04Z")

</div>

Normally, there’s no reason against a direct migration to the most recent target version.  
Working DB backup and restore assumed.  
Pay attention to custom SPIs/extensions.  
If you use 17-Quarkus, pay attention to totally changed configuration and deployment.  
If you use 17-Legacy, you have to migrate latest in a few months to Quarkus anyway.

---

<div class="post-metadata">

**Author:** ![marco-lp](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@marco-lp](https://forum.keycloak.org/u/marco-lp)\
**Post date:** [March 24, 2022, 1:45pm UTC](https://forum.keycloak.org/t/migration-strategy/14548/3 "2022-03-24T13:45:46Z")

</div>

Ok , so for you there is problem to migrate 11.0.3 to 17.0.1 directly.

Thanks a lot.  
Marco

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [March 24, 2022, 1:47pm UTC](https://forum.keycloak.org/t/migration-strategy/14548/4 "2022-03-24T13:47:07Z")

</div>

> [@marco-lp](#):
>
> Ok , so for you there is problem to migrate 11.0.3 to 17.0.1 directly.

for me, there is NO problem…!!!
