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

# 3.0: Upgrade guide

> Version-specific changes and preserved upgrade instructions.

> [!NOTE]
>
> Historical upgrade notes. Check the [maintenance policy](https://formbricks.com/docs/self-hosting/advanced/release-maintenance-policy.md)
> for support status. These instructions describe this release, not the current installation defaults.

Read the notes for every version you cross. Use the [upgrade checklist](https://formbricks.com/docs/self-hosting/advanced/upgrade.md)
to plan backups, service interruption and recovery. Old commands using `latest` or `stable` must be
resolved to the historical target release before use; they must not jump to today's release.

Before the Docker commands below, edit the `formbricks` service's `image` in your existing
`docker-compose.yml`. Replace `latest` with your exact published **3.0.x** tag, for example
`ghcr.io/formbricks/formbricks:v3.0.0` for the initial release. These historical GHCR tags include `v`. Confirm the selected tag with
`docker compose config --images` before running `pull` or `up`; keep your existing volumes and settings.

> [!WARNING]
>
> **Important: Do Not Upgrade to 3.0 If You Need SSO, User Identification, or Cluster Support**
>
> With **Formbricks 3.0**, we're making changes to ensure long-term sustainability while still supporting open source. While the **Community Edition** has gained [new features](https://formbricks.com/blog/formbricks-3-0), some [advanced capabilities](https://formbricks.com/docs/self-hosting/advanced/license.md) are now part of the **Enterprise Edition**.
>
> ⚠️ **No Downgrade Option:** If you upgrade to **3.0** and run the data migration, **you cannot revert to 2.7.2**. If you rely on **SSO, user identification, or cluster support**, either **stay on version 2.7.x** or reach out to us on [**GitHub Discussions**](https://github.com/formbricks/formbricks/discussions) **for a custom quote**.

This major release brings a better approach to **data migrations**.

* If you're using **Formbricks v2.7 or later**, you can upgrade **directly** to **v3.x** and future versions.

* If you're on a version **older than v2.7**, you **must upgrade step-by-step** (e.g. **2.4 → 2.5 → 2.6 → 2.7**) before moving to v3.x.

### Steps to migrate

This guide is for users **self-hosting** Formbricks with the **one-click setup**. If you're using a different setup, you might adjust the commands.

* &#x20;Navigate to the Formbricks Directory

Before running any steps, go to the directory where your `docker-compose.yml` file is located.

* Backup Your Database

Backing up your database is **crucial** before upgrading. Use the following command to create a backup:

```bash theme={null}
docker exec formbricks-postgres-1 pg_dump -Fc -U postgres -d formbricks > formbricks_pre_v3.0_$(date +%Y%m%d_%H%M%S).dump

```

> [!NOTE]
>
> **Note:** If you see a “No such container” error, run `docker ps` to find your actual container name (e.g.
> `formbricks_postgres_1`).

> [!NOTE]
>
> Tip: If you want to store the backup as a `.sql` file, remove the `-Fc` (custom format) option. If you need
> to restore it later, use `psql` with an empty Formbricks database.

* Pull the selected version of Formbricks:

```bash theme={null}
docker compose pull
```

* Stop the running Formbricks instance & remove the related containers:

```bash theme={null}
docker compose down
```

* Restarting the containers with the selected version of Formbricks:

```bash theme={null}
docker compose up -d
```

When you start the selected version of Formbricks, it will automatically detect and run any necessary data migrations during startup. There is no need to run any manual migration steps or pull any separate migration images.

* Access your updated instance

That’s it! Once the containers are up and running, simply navigate to the same URL as before to access your fully migrated Formbricks instance.


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