# Upgrade

When upgrading to the latest version, it's crucial to follow the correct procedure. Ensure to adhere to the specified steps for upgrading from your current version:

* [For upgrades from 2.0](#upgrading-from-2.x-to-3.0)
* [Subsequently, upgrade from 3.0 to the latest version available.](#upgrade-from-3.x-and-higher)

{% hint style="info" %}
Before initiating an upgrade, it is strongly advised to create backups of both the filesystem and database. This precautionary measure ensures that in the event of any unexpected issues during the upgrade process, you can revert to a stable state using the backed-up data.
{% endhint %}

### Upgrade from 3.0 and higher

This can be done easily by doing the following steps:

1. **Download the latest version**\
   Go to the [Apps for Tableau Enterprise Portal](https://my-appsfortableau.infotopics.com/login) and download the latest version of MailScheduler.
2. **Backup files and database**\
   Create a backup of the MailScheduler folder on your server. Also create a backup of your (repository or default) database.

{% tabs %}
{% tab title="Windows" %}

* Go to the folder were the MailScheduler.exe is located.&#x20;
* Open the MailScheduler.exe file with administrator privileges
* Click the `Open configuration` button
* Click the red `Stop` MailScheduler button

<figure><img src="/files/z6OnDdZPmaFYzVTfyIQb" alt="" width="375"><figcaption></figcaption></figure>

* Close the window
* Unzip the zip file that is downloaded in step 1
* Override the original MailScheduler.exe with the extracted one
* Open the MailScheduler.exe file with administrator privileges
* MailScheduler will automatically start. It could take some additional time to start since because of running updates on the first run.&#x20;
* Done!
* You can verify the latest version with changes in the management console.
  {% endtab %}

{% tab title="Linux" %}

* Upload the zip file to /usr/local/share/mailscheduler
* Stop the service by running `/usr/local/share/mailscheduler/mailscheduler-amd64 service stop`
* Extract the zip file.

```
unzip -o mailscheduler-enterprise-linux-3.1.0.zip
```

* Restart the service

`sudo /usr/local/share/mailscheduler/mailscheduler-amd64 service start`

* Done!
* Open the browser and navigate to the application to verify if the service is up and running. &#x20;
  {% endtab %}
  {% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.infotopics.com/mailscheduler/getting-started/upgrade.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
