Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Aug 26, 2024
1 parent b79a27c commit 11d46cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/all-plugins/data-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,28 @@ This is a guide for changing data handler (e.g. yaml -> mysql), or for updating
If you use the same database on multiple servers, follow these steps:

1) Shut down all servers.

2) Go to `/plugins/eco/config.yml` and make sure `perform-data-migration` is only set to `true` for **one** server.

3) On the server with data migration enabled, add `-Ddisable.watchdog=true` to startup flags.

4) Update `data-handler` to your new database in config on that server. If you are upgrading from before 6.74.0, **do not change this**. You can migrate again afterwards, but do not change data handler while updating eco.

5) Start that server, leave other servers off until migration is complete.

6) Wait for migration to complete. The server will restart automatically once migration is done.

7) Turn your other servers back on.

## For Single Servers

If your server is not on a network, follow these steps:

1) Shut down your server.

2) Add `-Ddisable.watchdog=true` to startup flags.

3) Update `data-handler` to your new database in config. If you are upgrading from before 6.74.0, **do not change this**. You can migrate again afterwards, but do not change data handler while updating eco.

4) Start the server and wait for migration to complete. The server will restart automatically once migration is done.

0 comments on commit 11d46cb

Please sign in to comment.