# How to migrate chef 12 from one AWSE ec2 instance to other?

**URL:** <https://discourse.chef.io/t/how-to-migrate-chef-12-from-one-awse-ec2-instance-to-other/9522>\
**Category:** Chef Infra (archive)\
**Created:** [September 27, 2016, 9:33am UTC](https://discourse.chef.io/t/how-to-migrate-chef-12-from-one-awse-ec2-instance-to-other/9522 "2016-09-27T09:33:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![imewish](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/imewish/32/1495_2.png) [@imewish](https://discourse.chef.io/u/imewish)\
**Post date:** [September 27, 2016, 9:33am UTC](https://discourse.chef.io/t/how-to-migrate-chef-12-from-one-awse-ec2-instance-to-other/9522/1 "2016-09-27T09:33:36Z")

</div>

How to migrate chef 12 from one AWSE ec2 instance to other?

helps would be appreciated

---

<div class="post-metadata">

**Author:** ![liora](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/liora/32/1518_2.png) [@liora](https://discourse.chef.io/u/liora)\
**Post date:** [September 27, 2016, 12:25pm UTC](https://discourse.chef.io/t/how-to-migrate-chef-12-from-one-awse-ec2-instance-to-other/9522/2 "2016-09-27T12:25:04Z")

</div>

My chef server is built with a CHEF cookbook. Every configuration is versioned controlled. So, launching a new AWS ec2 instance with CHEF server deployed and configured is just a push of a button.

---

<div class="post-metadata">

**Author:** ![imewish](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/imewish/32/1495_2.png) [@imewish](https://discourse.chef.io/u/imewish)\
**Post date:** [September 27, 2016, 12:36pm UTC](https://discourse.chef.io/t/how-to-migrate-chef-12-from-one-awse-ec2-instance-to-other/9522/3 "2016-09-27T12:36:05Z")

</div>

Even my chef server is also built with the community cookbook from cookbook supermarket and installed with my older chef-server, now the current server is managed by its own. But i havent added any versioning kind of things in it.

And its easy to launch a fresh server with that cookbook, but my issue is,

i need to get all the node configs,cookbooks,roles and all other data in my new instance.

Can you let me know how did you configure all above settings/configs on cookbook level?

Thanks

@liora

---

<div class="post-metadata">

**Author:** ![mkeisler](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/mkeisler/32/1203_2.png) [@mkeisler](https://discourse.chef.io/u/mkeisler)\
**Post date:** [September 27, 2016, 12:38pm UTC](https://discourse.chef.io/t/how-to-migrate-chef-12-from-one-awse-ec2-instance-to-other/9522/4 "2016-09-27T12:38:36Z")

</div>

Just create an image (AMI) from your running server and launch a new one  
using that image.

---

<div class="post-metadata">

**Author:** ![Tensibai](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tensibai/32/29_2.png) [@Tensibai](https://discourse.chef.io/u/Tensibai)\
**Post date:** [September 27, 2016, 2:51pm UTC](https://discourse.chef.io/t/how-to-migrate-chef-12-from-one-awse-ec2-instance-to-other/9522/5 "2016-09-27T14:51:44Z")

</div>

Use `knife backup` (external plugin) or `knife download` and then `knife upload`to restore to the new server.

[Documentation](https://docs.chef.io/knife_download.html) and [here](https://docs.chef.io/knife_upload.html)

Alternatively, use the backup and restore commands of `chef-server-ctl`.

[Documentation is here](https://docs.chef.io/release/server_12-8/server_backup_restore.html)

---

<div class="post-metadata">

**Author:** ![imewish](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/imewish/32/1495_2.png) [@imewish](https://discourse.chef.io/u/imewish)\
**Post date:** [September 28, 2016, 6:19am UTC](https://discourse.chef.io/t/how-to-migrate-chef-12-from-one-awse-ec2-instance-to-other/9522/6 "2016-09-28T06:19:17Z")

</div>

Thanks for the help guys. Creating AMI was quick and easy fix . 🙂
