Skip to content

Mideye Server 6 - Server Backup

Ensuring the integrity and availability of your Mideye Server 6 data is crucial for maintaining uninterrupted operations. This guide provides comprehensive instructions for backing up and restoring Mideye Server 6 on both Windows and Linux platforms.

Backup

Mideye Server 6 stores all essential components within its installation directory. Regular backups of configuration files and the database are essential for disaster recovery and migration purposes.

Installation Locations

  • Windows: C:\Program Files (x86)\Mideye Server 6\
  • Linux: /opt/mideyeserver6/

Key Files for Backup

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

  • application-prod.yml
    Contains all the basic configuration settings.

  • keystore.p12
    Stores the certificates and keys used to encrypt the database.

  • logback.xml (Less Important)
    Configures logging settings.

  • /opt/mideyeserver6/log/ C:\Program Files (x86)\Mideye Server 6\log\ If previous logs are not saved in a Syslogserver and they are important for you.

Together with the Mideye database, these files allow for a complete restoration of the Mideye Server.

Backup Procedures

Windows Backup

  1. Navigate to Configuration Directory:

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

  1. Backup Essential Files:

    • application-prod.yml
    • keystore.p12
  2. Backup the Database:

Linux Backup

  1. Navigate to Configuration Directory:

/opt/mideyeserver6/config/

  1. Backup Essential Files:

  2. application-prod.yml

  3. keystore.p12

  4. Backup the Database:

    • MySQL Database Backup:
      Use mysqldump to create a backup of the Mideye Server database.

    Command:

    mysqldump -u root -p mideyeserver_db > mideyeserver_db_backup.sql
    

    Reference:
    MySQL mysqldump Documentation

Restore

Restoring Mideye Server 6 from a backup is essential for disaster recovery, migration to a new location, or ensuring redundancy. Follow the steps below to perform a successful restoration.

Restore Steps

  1. Install Mideye Server:

    • Ensure that you install the same version of Mideye Server 6 as the one used for the backup to maintain compatibility.
  2. Set Up the Database:

    • Windows: Install and configure Microsoft SQL Server.
    • Linux: Install and configure MySQL.
  3. Import Database Backup:

    • Windows: Use SQL Server Management Studio (SSMS) or relevant tools to restore the MSSQL database from the backup.
    • Linux: Use the mysql command to import the MySQL database.

    Command:

    mysql -u root -p mideyeserver_db < mideyeserver_db_backup.sql
    

  4. Restore Configuration Files:

    • Copy the backed-up application-prod.yml and keystore.p12 files to the Mideye Server's configuration directory.

    • Windows:

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

    • Linux:

      /opt/mideyeserver6/config/
      

  5. Start Mideye Server:

  6. Windows: Use the Services management console to start the Mideye Server service.

  7. Linux: Use system commands to start the Mideye Server process, such as:

    sudo systemctl start mideyeserver6
    

  8. Verify Restoration:

    • Ensure that the Mideye Server is running correctly by checking the application logs and confirming connectivity with clients.

Best Practices

  • Regular Backups:
    Schedule automated backups to ensure that the latest configurations and data are always secured.

  • Secure Storage:
    Store backup files in a secure, off-site location to protect against data loss due to hardware failures or other disasters.

  • Test Restorations:
    Periodically perform test restorations to verify the integrity of backup files and the effectiveness of your recovery procedures.

  • Documentation:
    Maintain detailed records of backup schedules, storage locations, and restoration procedures to streamline recovery efforts.

Additional Resources


Note: Always ensure that backups are performed during maintenance windows to minimize the impact on server performance and availability. Additionally, keep your backup and restoration procedures aligned with your organization's disaster recovery and business continuity plans.