To restore system from backup in Foresight Mobile Platform 23.05:
Download the restore_standalone_backup.zip archive and unpack it.
Copy the restore_standalone_backup.sh script contained in the restore_standalone_backup.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:
COMPOSE_PROJECT_NAME=hyperhive 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:
COMPOSE_PROJECT_NAME=hyperhive 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.05