> For the complete documentation index, see [llms.txt](https://docs.enginsight.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enginsight.com/docs/manual/english/installation-and-configuration/updates/enginsight-platform/automatic-update.md).

# Automatic Update

Use our update script to download and run the latest version of Enginsight. This automatically updates all Docker containers.

{% hint style="warning" %}
**Please note**: During the initial setup of the Enginsight Application Server, a **system-wide cron job** is already created to run the update script regularly **once a week**. The following options are therefore primarily relevant if you

* want to [adjust the system-wide cron job](#adjust-the-system-wide-update-cron-job).
* want to [run the update script manually](#run-the-update-script-manually).
* want to [perform the update with limited connectivity](#update-with-limited-connectivity).
* installed Enginsight manually and want to set up a [custom cron job](#set-up-a-custom-update-cron-job) to run the update script regularly.
  {% endhint %}

***

## Adjusting the System-Wide Update Cron Job

If you want to update Enginsight more than once a week, you can customize the system-wide cron job that is created after the initial setup of the Enginsight Application Server.

Follow these steps:

{% stepper %}
{% step %}
Log in to the **Application sServer**.
{% endstep %}

{% step %}
Open the cron job configuration using the following command:

```
sudo nano /etc/cron.d/ngsupdate
```

{% endstep %}

{% step %}
Adjust the specified [cron expression](https://docs.enginsight.com/docs/manual/english/appendix/angabe-von-cron-ausdruecken.md) as needed.
{% endstep %}

{% step %}
Save the file (**Ctrl** + **o**) and confirm the save process. Close the file (**Ctrl** + **x**).
{% endstep %}
{% endstepper %}

***

## Running the Update Script Manually

Follow these steps if you want to run the update script manually:

{% stepper %}
{% step %}
Log in to the **Application Server**.
{% endstep %}

{% step %}
Navigate to the Enginsight installation directory using the following command:

```
cd /opt/enginsight/enterprise
```

{% endstep %}

{% step %}
Run the update script using the following command:

```
sudo ./update.sh
```

{% endstep %}
{% endstepper %}

***

## Updating with Limited Connectivity

You can also download the update script manually and run it offline. This is useful, for example, if your internet connectivity is highly restricted or your Application Server does not have a permanent internet connection.

Follow these steps:

{% stepper %}
{% step %}
Enable the internet connection and log in to the **Application Server**.
{% endstep %}

{% step %}
Navigate to the Enginsight installation directory using the following command:

```
cd /opt/enginsight/enterprise
```

{% endstep %}

{% step %}
Download the update script using the following command:

```
sudo wget -O update.sh https://raw.githubusercontent.com/enginsight/enterprise/master/update.sh
```

{% endstep %}

{% step %}
Disconnect the Application Server from the internet.
{% endstep %}

{% step %}
Run the update script using the following command:

```
sudo ./update.sh
```

{% endstep %}
{% endstepper %}

***

## Setting up a Custom Update Cron Job

If you installed the Enginsight platform manually, you need to set up a custom cron job to run the update regularly at a specific time.

Follow these steps:

{% stepper %}
{% step %}
Log in to the **Application Server**.
{% endstep %}

{% step %}
Create a crontab using the following commands:

```
sudo chmod +x /opt/enginsight/enterprise/update.sh
sudo crontab -e
```

{% endstep %}

{% step %}
Copy the following line into the editor that opens:

```
0 04 * * 0 cd /opt/enginsight/enterprise && ./update.sh
```

{% hint style="info" %}
You can [customize the cron expression](https://docs.enginsight.com/docs/manual/english/appendix/angabe-von-cron-ausdruecken.md) as required. In this example, the update is run weekly every Sunday at 4:00 a.m.
{% endhint %}
{% endstep %}

{% step %}
Save your changes.
{% endstep %}
{% endstepper %}

***
