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¶
- Navigate to Configuration Directory:
C:\Program Files (x86)\Mideye Server 6\config\
-
Backup Essential Files:
application-prod.yml
keystore.p12
-
Backup the Database:
- MSSQL Database Backup:
Follow the Microsoft SQL Server Backup and Restore Guide to perform a full backup of the Mideye Server database.
- MSSQL Database Backup:
Linux Backup¶
- Navigate to Configuration Directory:
/opt/mideyeserver6/config/
-
Backup Essential Files:
-
application-prod.yml
-
keystore.p12
-
Backup the Database:
- MySQL Database Backup:
Usemysqldump
to create a backup of the Mideye Server database.
Command:
Reference:
MySQL mysqldump Documentation - MySQL Database Backup:
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¶
-
Install Mideye Server:
- Ensure that you install the same version of Mideye Server 6 as the one used for the backup to maintain compatibility.
-
Set Up the Database:
- Windows: Install and configure Microsoft SQL Server.
- Linux: Install and configure MySQL.
-
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:
-
Restore Configuration Files:
-
Copy the backed-up
application-prod.yml
andkeystore.p12
files to the Mideye Server's configuration directory. -
Windows:
-
Linux:
-
-
Start Mideye Server:
-
Windows: Use the Services management console to start the Mideye Server service.
-
Linux: Use system commands to start the Mideye Server process, such as:
-
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.