This section contains the steps to upgrade **ClearML Server** on the new AWS instance.
**To migrate and to upgrade your ClearML Server AWS AMI:**
1. Shutdown **ClearML Server**. Executing the following command (which assumes the configuration file is in the environment path).
docker-compose down
1. On the old AWS instance, [backup your data](clearml_server_aws_ec2_ami.md#backing-up-and-restoring-data-and-configuration)
and, if your configuration folder is not empty, backup your configuration.
1. If upgrading from **Trains Server** version 0.15 or older, a data migration is required before upgrading. First follow
these [data migration instructions](clearml_server_es7_migration.md), and then continue this upgrade.
1. On the new AWS instance, [restore your data](clearml_server_aws_ec2_ami.md#backing-up-and-restoring-data-and-configuration) and, if the configuration folder is not empty, restore the
configuration.
1. Startup **ClearML Server**. This automatically pulls the latest **ClearML Server** build.