Skip to content

Data storage

srnyx edited this page Jun 21, 2024 · 4 revisions

Table of contents

Migrating between storage methods

  1. Stop the server
  2. Duplicate the storage.yml file and call the new one storage-new.yml
  3. In the storage-new.yml file, put in the new information for the database you want to migrate to (change any other settings you want the new database to have, such as the cache). Keep the storage.yml file as it is with your old database information. Your old database must still be accessible to the plugin in order to migrate the data!
  4. Start the server
  5. The plugin will use the information in storage.yml to gather all the data on the old database and use the information in storage-new.yml to add the data to the new database
  6. Once complete, storage.yml will be renamed to storage-old.yml and storage-new.yml will be renamed to storage.yml. The data will be in both the old database and new database now, you'll have to manually delete it in the old database if needed (this is done in-case of migration issues so that you can still manually migrate)