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.
How releases work
Заголовок раздела «How releases work»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.
Knowing when a release is out
Заголовок раздела «Knowing when a release is out»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 versionprints what the Updates page shows, andfluxerd psadds a line.rexctl statusshows a New release row.
| How you run Squad | Version command |
|---|---|
| Compose file | docker compose exec fluxer fluxerd version |
docker run | docker exec fluxer fluxerd version |
| Podman | podman exec fluxer fluxerd version |
| Linux by hand | runuser -u fluxer -- /opt/fluxer/current/bin/fluxerd version |
| Kubernetes | kubectl -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.
Upgrade
Заголовок раздела «Upgrade»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 -dWith 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.
Change the tag on the Image line of the Quadlet file, then reload and restart.
systemctl --user daemon-reload && systemctl --user restart fluxerAs root, leave out --user. To have the Updates page show this step with the version filled in, set FLUXER_UPGRADE_COMMAND.
Download and unpack the new release, move the current link and restart. With the check on, the Updates page in the admin panel shows the download command with the newest version already filled in for you.
Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.
The image tag follows the chart version, so a newer chart upgrades Squad. It takes the new chart’s defaults and keeps the values you set, while --reuse-values leaves out any value a newer chart adds. If you set image.tag, add --set image.tag= with the new version. If you set image.digest, add --set image.digest= with the new digest, or with nothing to follow the chart. With the check on, the Updates page in the admin panel shows the full command for your release, with the new version in image.tag and an empty image.digest, ready to copy and run.
rexctl upgraderexctl upgrades itself and Squad, takes a full backup first, and goes back to the release you had if the new one doesn’t start. On Linux, rexctl auto-upgrade on upgrades every day or once a week, at about 04:00 unless you pass --at, and sends a notice after each upgrade when you set an address with --notify.
Go back a version
Заголовок раздела «Go back a version»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 -ddocker compose logs fluxerdocker 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.
Put the older tag back on the Image line of the Quadlet file, run systemctl --user daemon-reload and systemctl --user restart fluxer, then restore.
journalctl --user -u fluxerpodman exec fluxer fluxerd restore /var/lib/fluxer/backups/<archive>As root, leave out --user.
journalctl -u fluxerdrunuser -u fluxer -- /opt/fluxer/current/bin/fluxerd restore /var/lib/fluxer/backups/<archive>kubectl -n fluxer logs fluxer-0kubectl -n fluxer exec fluxer-0 -- fluxerd restore /var/lib/fluxer/backups/<archive>rexctl rollbackrexctl rollback goes back to the release before the last upgrade. When the newer release has changed your data, it also restores the backup rexctl took before the upgrade, and anything posted after the upgrade is gone. With --restore-database, rexctl restores that backup even when the data hasn’t changed.
Before a restore, rexctl backs up the instance as it is now and prints the command that puts it back, unless you pass --no-safety-backup.
Automatic upgrades
Заголовок раздела «Automatic upgrades»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.
Turning the check on
Заголовок раздела «Turning the check on»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 Squad | Turn the check on |
|---|---|
| Docker or systemd | Set FLUXER_UPDATE_CHECK=true in fluxer.env |
| Kubernetes | Set config.FLUXER_UPDATE_CHECK to "true" in the chart |
| rexctl | Run rexctl config set FLUXER_UPDATE_CHECK true |
- To turn the check off again, remove the setting or set it to
false. FLUXER_UPDATE_CHECK_URLpoints the check at a copy of the list you host yourself.fluxerd version --checkasks 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 statusuntil you upgrade past it.
PostgreSQL upgrades
Заголовок раздела «PostgreSQL upgrades»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 upgraderexctl 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.
Restoring onto another PostgreSQL
Заголовок раздела «Restoring onto another PostgreSQL»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.