Backing up and restoring the database
Backing up the database and application files
backing-up-databaseWe recommend backing up your database regularly.
-
Stop the Firebird service and the Markvision Enterprise service.
- Open the Run dialog box, and then type services.msc.
- Right‑click Firebird Guardian - DefaultInstance, and then click Stop.
- Right‑click Markvision Enterprise, and then click Stop.
-
Browse to the folder where Markvision Enterprise is installed.
For example, C:\Program Files\
-
Back up the application and database files.
Backing up the application files
Copy the following files to a safe repository:
-
Lexmark\mve_encryption.jceks
-
Lexmark\mve_truststore.p12
-
Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\database.properties
-
Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\encryption.properties
-
Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\platform.properties
-
Lexmark\Markvision Enterprise\apps\library
-
Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\database.properties
-
Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\encryption.properties
-
Lexmark\Markvision Enterprise\jre\lib\security\cacerts
-
Lexmark\Markvision Enterprise\tomcat\conf\server.xml
Note: Make sure that these files are properly stored. Without the encryption keys in the mve_encryption.jceks file, data stored in an encrypted format in the database and on the file system cannot be recovered.Backing up the database files
Do either of the following:
Note: The following files are using the default database names. These instructions also apply to customized database names.-
If you are using a Firebird database, then copy the following files to a safe repository. These files must be backed up regularly to avoid data loss.
-
Lexmark\Markvision Enterprise\firebird\security5.FDB
If you are using custom database names, then update the following:
-
Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\database.properties
-
Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\database.properties
-
Lexmark\Markvision Enterprise\apps\mve-data-service/WEB-INF\classes\application.yml
-
Lexmark\Markvision Enterprise\firebird\aliases.conf
-
-
Lexmark\Markvision Enterprise\firebird\data\QUARTZ.FDB
-
Lexmark\Markvision Enterprise\firebird\data\MONITOR.FDB
-
Lexmark\Markvision Enterprise\firebird\data\FRAMEWORK.FDB
-
-
If you are using Microsoft SQL Server, then create a backup for FRAMEWORK, MONITOR, and QUARTZ.
For more information, contact your Microsoft SQL Server administrator.
-
-
Restart the Firebird service and the Markvision Enterprise service.
- Open the Run dialog box, and then type services.msc.
- Right‑click Firebird Guardian - DefaultInstance, and then click Restart.
- Right‑click Markvision Enterprise, and then click Restart.
Restoring the database and application files
restoring-database-
Stop the Markvision Enterprise service.
For more information, see the Backing up and restoring the database section.
-
Browse to the folder where Markvision Enterprise is installed.
For example, C:\Program Files\
-
Restore the application files.
Replace the following files with the files that you saved during the backup process:
-
Lexmark\mve_encryption.jceks
-
Lexmark\mve_truststore.p12
-
Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\database.properties
-
Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\encryption.properties
-
Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\platform.properties
-
Lexmark\Markvision Enterprise\apps\library
-
Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\database.properties
-
Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\encryption.properties
-
Lexmark\Markvision Enterprise\jre\lib\security\cacerts
-
Lexmark\Markvision Enterprise\tomcat\conf\server.xml
Note: Update the server.xml configuration to support the certificate keystore password encryption feature in MVE.-
Ensure that the
certificateKeystorePasswordis specified in plaintext rather than in encrypted format. -
If MVE version is 4.5.x, change the protocol attribute in the SSL connector tag from
com.lexmark.decryption.CustomHttp11Nio2Protocoltoorg.apache.coyote.http11.Http11NioProtocol. -
After the restore operation, restart the MVE service to re-encrypt the password (except in MVE 4.5.x).
For MVE 4.5.x, password encryption requires an upgrade to version 4.6. After the upgrade, set the protocol to
com.lexmark.decryption.CustomHttp11Nio2Protocol, then restart the service to apply the change.
-
Note: You can restore a database backup to a new MVE installation only if the new MVE installation is the same version. -
-
Restore the database files.
Do either of the following:
-
If you are using a Firebird database, then replace the following files that you saved during the backup process:
Note: The following files are using the default database names. This instruction also applies to customized database names.-
Lexmark\Markvision Enterprise\firebird\security2.fdb
If you are using custom database names, then the following files are also restored:
-
Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\database.properties
-
Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\database.properties
-
Lexmark\Markvision Enterprise\apps\mve-data-service/WEB-INF\classes\application.yml
-
Lexmark\Markvision Enterprise\firebird\aliases.conf
-
-
Lexmark\Markvision Enterprise\firebird\data\QUARTZ.FDB
-
Lexmark\Markvision Enterprise\firebird\data\MONITOR.FDB
-
Lexmark\Markvision Enterprise\firebird\data\FRAMEWORK.FDB
-
-
If you are using Microsoft SQL Server, then contact your Microsoft SQL Server administrator.
-
-
Restart the Markvision Enterprise service.
For more information, see the Backing up and restoring the database section.