To restore system from backup in Foresight Mobile Platform 23.12 or later:
Make sure that versions of docker client and docker server correspond to 26.1.xx, and versions of docker-compose corresponds to 1.29.xx:
To get the used versions of docker client and docker server, execute the command:
% docker version
To get the used version of docker-compose, execute the command:
% docker-compose -v
If versions of docker client, docker server and docker-compose do not correspond to the specified ones, update them.
Copy the restore_standalone_backup.sh script contained in the standalone_compose_files_v25.03.<version number>.zip archive and place it in the folder with the docker-compose.standalone.yml file.
Replace the .env configuration file with its backup.
Execute one of the operations:
Start Docker containers if they were stopped and wait until the mobile platform service start process is finished:
% docker-compose -f docker-compose.standalone.yml up -d
Reinstall Foresight Mobile Platform if required.
Deny access of user to mobile platform server.
Start the script:
bash restore_standalone_backup.sh
If there are several folders standalone_backup_<backup creation date and time> together with the saved backups, specify name of the required folder as the script:
bash restore_standalone_backup.sh standalone_backup_<backup creation date and time>
Check system performance and volume of restored data:
Check cache data volume. If the data volume is not full, delete cache and add it again in the Cache Control subsection.
Reset JWT expiration time for API users and administrators. To do this, change values of the parameters: Expiration Time of JWT Token for API Users, Expiration Time of JWT Token for Administrators, Expiration Time of refresh JWT for API Users and Administrators in the Security subsection.
Add accounts of API users if they were added after creating a backup.
Allow access of users to mobile platform server.
After executing the operations the system is restored from backup.
See also:
Creating a Backup and Restoring System | Creating a System Backup in Foresight Mobile Platform 23.12 or Later