Backup can be used to restore system availability in case of unexpected behavior and also prevent loss of user data and made configuration changes.
The following can be backed up and restored:
PostgreSQL databases:
maindb. It is used to store administrator console settings, API user accounts, parameters of connection to data sources and their resources, environment and project parameters, parameters of connection to LDAP directory, auxiliary files for sending push notifications, and so on.
cachedb. It is used to store cache data of data source resources requested by mobile platform server or mobile device.
localdb. It is used to store data of the Local Database source.
TIP. It is recommended to set object copy frequency depending on how often new data is added. For example, for the main database determine frequency of adding API user accounts, for the cache database determine frequency of data change on schedule of cache update, for the local database determine frequency of adding new data to the Local Database data source. A backup is created after the peak of adding new data.
Local file storage MinIO. It contains:
Files loaded to local storage of each project.
JSON files with responses from data sources, database, or mobile platform server when advanced logging of data source requests is executed.
Application distributions and data source server certificates.
Backups of PostgreSQL databases when using cluster configuration of Foresight Mobile Platform.
Technical and system logs contained in the System Logs subsection in the Elasticsearch logging system.
Configuration file .env. It contains information about used containers in use and other system settings.
If Foresight Mobile Platform 23.05 and later is used, creating a backup and restoring of Elasticsearch logs is available separately from the system.
A procedure of creating a backup differs depending on the version of Foresight Mobile Platform:
Create a system backup in Foresight Mobile Platform 23.12 or later.
Creating a system backup in Foresight Analytics Platform 23.05.
Creating a system backup in Foresight Mobile Platform 22.04 or earlier.
Creating a backup of Elasticsearch logs in Foresight Analytics Platform 23.05 or later.
Restoring of system from backup differs depending on the version of Foresight Mobile Platform:
Restore system from backup in Foresight Analytics Platform 23.12 or later.
Restoring system from backup in Foresight Analytics Platform 23.05.
Restoring system from backup in Foresight Analytics Platform 22.04 or earlier.
Restoring Elasticsearch logs from backup in Foresight Analytics Platform 23.05 or later.
See also: