Previous Version Restore
MITIGATOR does not have an automatic version restore mechanism. The restore procedure is similar to the update procedure, but the Compose files of the previous version are used. Thus, it is necessary to replace all configuration files, download the corresponding images, restore the database of the required version. All changes made after the backup copy was taken will be lost.
Before restoring, make sure you have a backup taken on the system version you want to restore, down to the minor version number. For example, to restore v23.12.3, you need to use a backup taken on v23.12.3. Therefore, it is important to make a backup (especially of the database) before every update, including updates within the same major.
Restore procedure
On all cluster instances:
-
Write a line with the version to the
.env
file:VERSION=vXX.XX
Where
vXX.XX
is a target version (for example: v23.12 or v23.12.1). -
Download the Compose file that is relevant to the target version and replace the existing one with it:
wget https://docs.mitigator.ru/vXX.XX/dist/docker-compose.yml -O docker-compose.yml
Where
vXX.XX
is a target major version (for example: v23.12 or v24.04). -
Download images:
docker-compose pull
-
Restore the system from a backup.