Skip to content

Upgrade

niketchandra edited this page Nov 27, 2026 · 1 revision

Upgrade

The updater moves an existing console to the newest release (latest). Data, passwords and settings are kept.

Linux

# One command, no questions
curl -fsSL https://raw.githubusercontent.com/AtGlance-system/atGlance/main/scripts/atglance_update.sh | sudo bash -s -- --yes

# Or download, read, then run (asks for confirmation)
curl -fsSL https://raw.githubusercontent.com/AtGlance-system/atGlance/main/scripts/atglance_update.sh -o atglance_update.sh
sudo bash atglance_update.sh

Add --dir DIR if AtGlance is not in /opt/atglance.

Windows (PowerShell as administrator)

irm https://raw.githubusercontent.com/AtGlance-system/atGlance/main/scripts/atglance_update.ps1 -OutFile atglance_update.ps1
powershell -ExecutionPolicy Bypass -File .\atglance_update.ps1

Add -Yes to skip the confirmation, -Dir DIR for another folder.

What it does

Step What happens
1. Database backup mysqldump to <dir>/backups/update-<time>/atglance.sql.gz, checked, with row counts of every table, the app's .env (APP_KEY) and the compose files. The last 5 are kept (--keep N)
2. Current images The running AtGlance images are tagged :rollback-<time>
3. New images Pulls the images of the newest docker-compose.yml. Nothing changed: "already up to date" (redeploy anyway with --force)
4. Update Refreshes docker-compose.yml, keeps the overlays the console was started with, recreates the containers. Migrations run when the app starts
5. Health checks Every service healthy or running on the new image, ports answering, no pending migrations, no restart loop, no new errors in the app log, disk space
6. Database check The live database against the backup (no rows lost), and the backup restored into a scratch database (--skip-db-verify skips it)

Exit codes: 0 updated or already up to date · 1 stopped before changing anything · 2 updated but a check failed: see Rollback.

Options

Linux Windows What it does
--dir DIR -Dir DIR Install directory
--yes -Yes No confirmation
--force -Force Redeploy even when up to date
--skip-db-verify -SkipDbVerify Skip the scratch-database restore check
--keep N -Keep N Backups to keep (default 5)
--keep-clone -KeepClone Keep the git clone the updater ran from

Quick upgrade

Running the installer again also upgrades: it keeps .env, passwords and data, but takes no backup and runs no checks. A manual (clone) install upgrades with git pull && docker compose pull && docker compose up -d --remove-orphans.

Clone this wiki locally