If you are upgrading your Appwrite server from an older version, you should use the Appwrite migration tool once your setup is completed. Make sure to run this tool after you already finished setting up the new version, as mentioned above.
When setting up a new Appwrite version, make sure to run your new setup from the same location you executed your original setup. This will allow the installation script to update your existing docker-compose.yml file. The correct location for execution is the parent directory of your existing appwrite directory.
The data migration tool will allow you to easily migrate your current Appwrite data to work with your new setup. It is highly recommended to backup your server data, and your docker-compose.yml file settings before running the migration.
To start the migration, run the following command from your terminal once your backup is ready and that your new Appwrite setup has completed successfully. Replace "[APPWRITE_CONTAINER_ID]" with your container ID. You can find your container ID by running `docker ps` command.