> ## Documentation Index
> Fetch the complete documentation index at: https://docs.azvian.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Updating

> Find out about a new version under Admin → Licence, download it, and swap it in without losing your data

Under **Admin → Licence**, the *Updates* box tells you when a newer version is available. It checks once a day, or press **Check now**. It shows the version you are running and a **Download** button for the new one. The download link is a signed link that expires after 15 minutes; if it has expired, press the button again.

An update **never installs itself**. That is deliberate: it is your server and your data.

## Before you start

> [!WARNING]
>
> **Back up** the database, `.env` and `storage/app` (see *Backups* in the [installation guide](https://docs.azvian.com/uptime-monitor/installation.md#backups)). Read the changelog shown on the Licence page.

## Update steps

The zip never contains your `.env`, your SQLite database or your uploaded files, so your own data is never overwritten. The safest way is to swap the code and carry your data across:

```bash theme={null}
cd /var/www
mv uptime-monitor uptime-monitor.old
unzip ~/azvian-uptime-monitor-1.1.0.zip          # creates ./azvian-uptime-monitor
mv azvian-uptime-monitor uptime-monitor

# bring your data across
cp uptime-monitor.old/.env uptime-monitor/.env
cp -R uptime-monitor.old/storage/app/. uptime-monitor/storage/app/
cp uptime-monitor.old/database/database.sqlite uptime-monitor/database/ 2>/dev/null   # SQLite only

cd uptime-monitor
chown -R www-data:www-data . && chmod -R u+rwX,g+rwX storage bootstrap/cache database
php artisan migrate --force
php artisan optimize:clear
php artisan queue:restart
```

Then open **Admin → Licence**: it should show the new version.

If you would rather extract the zip over the top of the existing folder, that also works for the code, but old files that were removed in the new version will linger, so the swap above is tidier. On shared hosting without a terminal, upload the new files over the old ones, keeping `.env`, `storage/` and your database; the migration step is the only part that needs `php artisan`.

## If something goes wrong

Put the old folder back and restore your database backup if the migration had already run:

```bash theme={null}
mv uptime-monitor uptime-monitor.failed && mv uptime-monitor.old uptime-monitor
php artisan optimize:clear
php artisan queue:restart
```

Keep the previous version's folder until you are happy with the new one.

## Not seeing an update?

* The check needs a **valid license** and the server must be able to reach `api.azvian.com`. The Licence page shows the last answer and any error.
* Products sold on a subscription only receive updates while the subscription is active; the Licence page says so when that is the reason.

See also the general guide: [Updating](https://docs.azvian.com/start/updating.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.