# Migrating Cockpit installation to a new server

**URL:** <https://discourse.getcockpit.com/t/migrating-cockpit-installation-to-a-new-server/2077>\
**Category:** Support\
**Created:** [September 17, 2021, 8:52pm UTC](https://discourse.getcockpit.com/t/migrating-cockpit-installation-to-a-new-server/2077 "2021-09-17T20:52:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickpish](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nickpish](https://discourse.getcockpit.com/u/nickpish)\
**Post date:** [September 17, 2021, 8:52pm UTC](https://discourse.getcockpit.com/t/migrating-cockpit-installation-to-a-new-server/2077/1 "2021-09-17T20:52:41Z")

</div>

I’m wondering about the easiest way to migrate an existing Cockpit installation to a new server? I’ve searched the forum and haven’t found any related threads aside from [this one](https://discourse.getcockpit.com/t/migrating-cockpit-cms-wrong-image-paths/368). Is it easiest to simply do a clean install of Cockpit on the new server, make any required adjustments to the `config.yaml` file, then copy over the `addons` and `storage` folders? Thanks for any guidance here.

---

<div class="post-metadata">

**Author:** ![serjoscha87](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/serjoscha87/32/151_2.png) [@serjoscha87](https://discourse.getcockpit.com/u/serjoscha87)\
**Post date:** [September 18, 2021, 12:34pm UTC](https://discourse.getcockpit.com/t/migrating-cockpit-installation-to-a-new-server/2077/2 "2021-09-18T12:34:17Z")

</div>

You can simply copy the complete cockpit directory to the new server.

---

<div class="post-metadata">

**Author:** ![nickpish](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nickpish](https://discourse.getcockpit.com/u/nickpish)\
**Post date:** [September 19, 2021, 3:52am UTC](https://discourse.getcockpit.com/t/migrating-cockpit-installation-to-a-new-server/2077/3 "2021-09-19T03:52:13Z")

</div>

Oh, is it really that simple? Fantastic, thanks!

---

<div class="post-metadata">

**Author:** ![serjoscha87](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/serjoscha87/32/151_2.png) [@serjoscha87](https://discourse.getcockpit.com/u/serjoscha87)\
**Post date:** [September 19, 2021, 10:37am UTC](https://discourse.getcockpit.com/t/migrating-cockpit-installation-to-a-new-server/2077/4 "2021-09-19T10:37:52Z")

</div>

Yes indeed, its that simple 🙂

Its because cockpit saves all data to the storage directory (as long as you are using cockpit with the sqlite adapter)

---

<div class="post-metadata">

**Author:** ![abernh](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/abernh/32/859_2.png) [@abernh](https://discourse.getcockpit.com/u/abernh)\
**Post date:** [September 20, 2021, 9:59am UTC](https://discourse.getcockpit.com/t/migrating-cockpit-installation-to-a-new-server/2077/5 "2021-09-20T09:59:11Z")

</div>

> [@nickpish](#):
>
> Oh, is it really that simple? Fantastic, thanks!

Just make sure, you also transfer the file permissions correctly. See [[SOLVED] Clone cockpit to other server - #3 by alessandro92](https://discourse.getcockpit.com/t/solved-clone-cockpit-to-other-server/1314/3) .
