# 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="https://content.gitbook.com/content/OEnvavVjEKojggGVc69T/blobs/iKn1OQ0rfCBqGKAqLY3j/Screenshot%202024-06-19%20at%2012.53.57.png" 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 %}
