Перейти к содержимому

Upgrades and rollbacks

Squad backs up and upgrades its own database when you start a newer release. You can go from any older release to any newer one in one step.

Each release has a date and time as its version, such as 2026.1114.195738.

A newer date is a newer release.

When Squad starts a newer release on older data, it first backs up the database, passwords and keys into the backups folder of its data folder. It then upgrades the database. You don’t need to stop anything first, or install the releases in between.

Squad doesn’t look for new releases by itself. When you turn the check on, it looks once a day and tells you in these places when one is out.

  • The admin panel shows a line at the top of the Users page. Its Updates page, under Configuration, has the version, the day it came out and the upgrade command for this instance with the new version already filled in.
  • The log shows the upgrade command once.
  • fluxerd version prints what the Updates page shows, and fluxerd ps adds a line.
  • rexctl status shows a New release row.
How you run SquadVersion command
Compose filedocker compose exec fluxer fluxerd version
docker rundocker exec fluxer fluxerd version
Podmanpodman exec fluxer fluxerd version
Linux by handrunuser -u fluxer -- /opt/fluxer/current/bin/fluxerd version
Kuberneteskubectl -n fluxer exec fluxer-0 -- fluxerd version

To hear about releases without running anything, follow the releases RSS in an RSS reader, or watch the releases of fluxerapp/fluxer on GitHub.

With the compose file, open compose.yaml, change the tag on the image: line, such as `squad-local:build then pull and start it in the same folder.

Окно терминала
docker compose pull && docker compose up -d

With the check on, the Updates page in the admin panel shows one command that does both steps, with the newest version number already filled in. Squad backs up its database, passwords and keys before it upgrades them.

With Podman and the compose file, run podman compose pull && podman compose up -d in place of the docker compose line. The Updates page shows that form when Squad runs in Podman.

If compose.yaml came from rexctl migrate --to compose or rexctl detach, keep it and change only the image: line.

With docker run, pull the new image, then stop and remove the container and run the same line with the new tag. The volume keeps your data. With the check on and -e FLUXER_INSTALL_METHOD=docker in your line, the Updates page shows the first two commands with the newest version filled in.

Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.

Use your own ports if you changed them, such as the proxy mode ones.

Never use docker rm -f here, which stops PostgreSQL without letting it shut down.

On a NAS or a panel such as Portainer or Coolify that keeps the compose file for you, change the tag on the image line where the panel shows it.

The compose file for each panel sets FLUXER_UPGRADE_COMMAND so that the admin panel shows that step, with {version} where the version goes, such as FLUXER_UPGRADE_COMMAND=In Portainer, set the image tag to {version} and update the stack. Without it, the admin panel shows steps for any container.

An older release can’t run on a database that a newer one has upgraded.

When you start one, Squad stays up but not ready, and its log says which command restores the backup from before the upgrade.

this data was upgraded to Squad 2026.1201.120000, and this Squad 2026.1114.195738 can't run on it. Start Squad 2026.1201.120000 or newer, or go back to the backup from before the upgrade with fluxerd restore /var/lib/fluxer/backups/...

Run that command in the running container, pod or service, and Squad then starts the older release. Anything posted after the upgrade is gone.

Put the older tag back on the image line of compose.yaml, start it, then restore.

Окно терминала
docker compose up -d
docker compose logs fluxer
docker compose exec fluxer fluxerd restore /var/lib/fluxer/backups/<archive>

Without the compose file, run docker stop fluxer and docker rm fluxer, then run your docker run line with the older tag.

After that, docker compose logs fluxer and docker compose exec fluxer become docker logs fluxer and docker exec fluxer.

The compose file and docker run use the tag you give them, and nothing upgrades Squad behind your back. With rexctl on Linux, rexctl auto-upgrade on upgrades every day or once a week, at about 04:00 unless you pass --at, with the same backup and go-back as rexctl upgrade. rexctl doesn’t offer automatic upgrades on Docker Desktop.

Each run asks fluxer.dev for the newest release itself. It doesn’t need FLUXER_UPDATE_CHECK, and turning on automatic upgrades doesn’t turn the check on.

We don’t recommend tools that pull a new image by themselves, such as Watchtower or Podman’s auto-update. Squad still backs up first, but going back needs a manual restore.

The release check is off unless you turn it on. Once it’s on, Squad asks https://www.squad-fun.su/source/ for the list of releases once a day and compares it with its own version on your machine. Every instance that asks gets exactly the same list back.

The request is a plain GET with the user agent Squad. It has no instance ID, domain, version, user or community counts, and no cookies. Like any web request, it shows the server your machine’s public IP address.

How you run SquadTurn the check on
Docker or systemdSet FLUXER_UPDATE_CHECK=true in fluxer.env
KubernetesSet config.FLUXER_UPDATE_CHECK to "true" in the chart
rexctlRun rexctl config set FLUXER_UPDATE_CHECK true
  • To turn the check off again, remove the setting or set it to false.
  • FLUXER_UPDATE_CHECK_URL points the check at a copy of the list you host yourself.
  • fluxerd version --check asks each time you run it, even with the check off.
  • A list Squad saved before you turned the check off stays in the admin panel and rexctl status until you upgrade past it.

The container image has PostgreSQL 17, and an image upgrade never changes it.

On the systemd route, Squad uses the PostgreSQL from Debian or Ubuntu and stays on the version its database was made with.

A Squad upgrade never moves the database to another PostgreSQL.

When a newer PostgreSQL is installed, such as after a Debian or Ubuntu release upgrade, move the Squad database over to it with rexctl.

Окно терминала
sudo rexctl postgres upgrade

rexctl backs up first, and going back after the move needs that backup. Without rexctl, stop fluxerd.service and, as the fluxer account, run fluxerd postgres-upgrade.

A backup restores onto the same PostgreSQL or a newer one. A backup from PostgreSQL 17, such as one from the container image, doesn’t restore onto Ubuntu 22.04 with PostgreSQL 14. Install postgresql-17 from apt.postgresql.org first, or restore on a machine with 17 or later. The restore then puts the backup into a new PostgreSQL 17 database and keeps the old one next to it. rexctl postgres upgrade --clean-up deletes the old one when you no longer need it.