> ## Documentation Index
> Fetch the complete documentation index at: https://simplecloud.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Move a serverhost to a new machine

> Move your serverhost to another machine or hosting provider

Your groups, persistent servers, and settings belong to your network, so they
move with you. You only need to copy your files from the old machine to the new
one. Your servers are offline during the move.

If you run several serverhosts, follow
[Run SimpleCloud on multiple machines](https://simplecloud.app/docs/en/manual/setup/multi-root.md) instead.

**1. Stop all servers**

Open **Servers** in the dashboard. Right-click each group and persistent
server and hold **Disable**.

**2. Add the new machine**

Open
[Settings > Server Hosts](https://dash.simplecloud.app/redirect?target=%2Fsettings%2Fserverhosts),
select **Add host**, and run the command on the new machine.

**3. Wait for the network key**

The new serverhost receives the key for your network's secrets from the old
one. On the new machine, run:

```bash theme={null}
sc logs serverhost --lines 200
```

Continue when the log shows
`Shared private key synchronized from a peer serverhost`.

> [!WARNING]
>
> Keep the old serverhost running until this line appears. Without the key,
> servers on the new machine cannot start.

**4. Copy your files**

Copy the `templates`, `workflows`, and `options` folders from the old
installation to the new one. If you have persistent servers, also copy
`running/persistent`. Do not copy `secrets` or `serverhost.properties`.

**5. Assign persistent servers to the new serverhost**

Open each persistent server, go to **Settings > Deployment**, and select
the new serverhost.

**6. Stop the old serverhost**

On the old machine, run:

```bash theme={null}
sc stop serverhost
```

**7. Start your servers again**

In **Servers**, right-click each group and persistent server and hold
**Enable**.

**8. Remove the old serverhost**

If players join with a domain, point its DNS record to the new machine's IP
address. When everything works, open **Settings > Server Hosts**, select
**Deactivate** and then **Delete** from the old serverhost's actions menu.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.