ELMA365 On-Premises > ELMA365 On-Premises Standard / Backup and restore databases for ELMA365 Standard

Backup and restore databases for ELMA365 Standard

Data backup for ELMA365 Standard (KinD) should include:

  • PostgreSQL. The database stores the main system data: users, app items, workspace settings and app configurations, business processes, pages, widgets, tasks, events, and other configuration settings;
  • MongoDB. The database contains unstructured system settings, live chat data, and feed entries;
  • S3 Object Storage. The object storage holds files uploaded to and created in ELMA365 of any type and size, such as documents, photos, audio, and video files.

backup-restore-1

Backup of data for ELMA365 Standard (KinD)

начало внимание

During the backup process, the ELMA365 Standard (KinD) services are halted, rendering the app inaccessible.

конец внимание

  1. Stop the ELMA365 Standard app by executing the command:

sudo ./elma365-installer-docker.sh --stop

  1. To create a backup of the databases, run the installation script elma365-installer-docker.sh with the --dump key:

sudo ./elma365-installer-docker.sh --dump

Example of running the installation script with the --dump key:
backup-restore-2

  1. Upon completion of the backup, the script will display a message confirming the successful creation of the dump.
  2. The dump will be saved in a separate folder, named with the version of the distribution and a timestamp, for example, "/backup/ELMA365_2023.2.15_2023.04.10-13.52.26".
     
    By default, dumps are saved in the "/backup" path. The directory where the ELMA365 Standard (KinD) system backups will be saved is specified in the ELMA365_BACKUP_DIR parameter of the config-elma365.txt configuration file.
     
    To learn how to change the backup saving path, refer to Modify ELMA365 Standard parameters.
  3. Start the ELMA365 Standard application by executing the command:

sudo ./elma365-installer-docker.sh --start

Restore data for ELMA365 Standard (KinD)

Restoring data from a backup can help recover ELMA365 Standard (KinD) in the event of a virtual infrastructure failure or physical infrastructure breakdown.

If restoration of the host system is not possible, install ELMA365 on a new server.

  1. Before restoring data, stop the ELMA365 Standard app by executing the command:

sudo ./elma365-installer-docker.sh --stop

  1. To restore the data, run the installation script with the keys --restore and --path /backup/<backup-folder-name>:

sudo ./elma365-installer-docker.sh --restore --path /backup/<backup-folder-name>

Example of executing the installation script with the keys --restore and --path /backup/<backup-folder-name>:
backup-restore-3

  1. Upon completion of data restoration from the backup, the script will display a message confirming the successful restoration.
  2. Start ELMA365 Standard by executing the command:

sudo ./elma365-installer-docker.sh --start

Found a typo? Highlight the text, press ctrl + enter and notify us