Skip to content

Mideye Server 5 Backup and Restore Guide

Regular backups of your Mideye Server 5 configuration and database are essential for disaster recovery and migration. This guide explains which files to back up and how to restore them on Windows and Linux systems.

What you need to back up:

  • Configuration file (application-prod.yml)
  • Certificate keystore (keystore.p12)
  • Database (MSSQL on Windows, MySQL/MariaDB on Linux)
  • Log configuration (logback.xml) — optional

PlatformInstallation Directory
WindowsC:\Program Files (x86)\Mideye Server\
Linux/opt/mideyeserver/

Within the installation directory, the config folder contains critical files required for server recovery:

FileDescriptionImportance
application-prod.ymlMain configuration file with database connection, RADIUS settings, and server optionsCritical
keystore.p12Certificate store containing SSL certificates and encryption keys for databaseCritical
logback.xmlLogging configuration (log levels, file rotation, syslog settings)Optional

  1. Back up the configuration directory:

    C:\Program Files (x86)\Mideye Server\config\

    Essential files:

    • application-prod.yml
    • keystore.p12
  2. Back up the database:

    Use SQL Server Management Studio (SSMS) or T-SQL to create a full backup:

    BACKUP DATABASE [MideyeServer]
    TO DISK = 'C:\Backups\MideyeServer_backup.bak'
    WITH FORMAT, COMPRESSION;

    See Microsoft SQL Server Backup Guide for details.

  3. Optional: Back up logs

    C:\Program Files (x86)\Mideye Server\log\
  1. Back up the configuration directory:

    Terminal window
    sudo tar -czvf mideye-config-backup.tar.gz /opt/mideyeserver/config/

    Essential files:

    • /opt/mideyeserver/config/application-prod.yml
    • /opt/mideyeserver/config/keystore.p12
  2. Back up the MySQL/MariaDB database:

    Terminal window
    mysqldump -u root -p MideyeServer > MideyeServer_backup.sql

    Or with compression:

    Terminal window
    mysqldump -u root -p MideyeServer | gzip > MideyeServer_backup.sql.gz
  3. Optional: Back up logs

    Terminal window
    sudo tar -czvf mideye-logs-backup.tar.gz /opt/mideyeserver/log/

  • Install the same version of Mideye Server 5 as the backup
  • Set up the database server (MSSQL on Windows, MySQL/MariaDB on Linux)
  • Have your backup files available
  1. Install Mideye Server 5 on the target server (see Windows Installation)

  2. Stop the Mideye Server service:

    net stop MideyeServer
  3. Restore the database:

    RESTORE DATABASE [MideyeServer]
    FROM DISK = 'C:\Backups\MideyeServer_backup.bak'
    WITH REPLACE;
  4. Restore configuration files: Copy application-prod.yml and keystore.p12 to:

    C:\Program Files (x86)\Mideye Server\config\
  5. Update database connection (if server changed): Edit application-prod.yml and update the database connection string if the database server hostname or credentials have changed.

  6. Start the service:

    net start MideyeServer
  1. Install Mideye Server 5 on the target server (see Linux Installation)

  2. Stop the Mideye Server service:

    Terminal window
    sudo systemctl stop mideyeserver
  3. Restore the database:

    Terminal window
    mysql -u root -p MideyeServer < MideyeServer_backup.sql

    Or from compressed backup:

    Terminal window
    gunzip < MideyeServer_backup.sql.gz | mysql -u root -p MideyeServer
  4. Restore configuration files:

    Terminal window
    sudo tar -xzvf mideye-config-backup.tar.gz -C /

    Or copy files manually to:

    /opt/mideyeserver/config/
  5. Set correct permissions:

    Terminal window
    sudo chown -R mideyeserver:mideyeserver /opt/mideyeserver/config/
    sudo chmod 600 /opt/mideyeserver/config/keystore.p12
  6. Update database connection (if server changed): Edit /opt/mideyeserver/config/application-prod.yml and update the database connection if needed.

  7. Start the service:

    Terminal window
    sudo systemctl start mideyeserver


ItemWindows PathLinux Path
Config directoryC:\Program Files (x86)\Mideye Server\config\/opt/mideyeserver/config/
Main configconfig\application-prod.ymlconfig/application-prod.yml
Certificate storeconfig\keystore.p12config/keystore.p12
Log configconfig\logback.xmlconfig/logback.xml
Log fileslog\log/