Skip to content

Rollback

niketchandra edited this page Nov 27, 2026 · 1 revision

Rollback

Each update writes a backup folder, <dir>/backups/update-<time>/, with a ROLLBACK.txt holding the exact commands for that update. Follow it when the updater ends with exit code 2, or when the new release misbehaves.

The steps it lists (Linux):

  1. Start the previous images again. Keep the current .env: it holds the passwords the database uses now.

    cd /opt/atglance && cp backups/update-<time>/docker-compose*.yml .
    sed -i 's/^ATGLANCE_VERSION=.*/ATGLANCE_VERSION=rollback-<time>/' .env
    docker compose up -d --remove-orphans
  2. Only if data is wrong, restore the database dump. This replaces all current data:

    gunzip -c backups/update-<time>/atglance.sql.gz | docker exec -i ce-atglance-db sh -c 'MYSQL_PWD="$MYSQL_ROOT_PASSWORD" mysql -uroot atglance'
  3. Later, return to normal updates: set ATGLANCE_VERSION=latest in .env, then run the updater.

On Windows, ROLLBACK.txt holds the PowerShell commands.

If the app key changed (HTTP 500 on every page after a restore), put the saved app.env from the backup folder back into /app/storage/.env in the app-storage volume.

Clone this wiki locally