Backup and Restore of a Model Manager Server Database
You should configure backup of your Model Manager server database to protect from data loss in case of, for example, a server disk crash. Backup for a database using Managed Server Components can be configured from the web interface and is handled automatically by the Model Manager server itself. Backup for a database using external components needs to be configured and maintained outside of the Model Manager server by your organization.
Backup of a Model Manager Server Database
Backup for a Model Manager server database involves configuring separate backups for its SQL database and its resources directory. The search indexes of a Model Manager server database do not require backup since they can be recreated from the data in the SQL database.
For a Model Manager server database using Managed Server Components with backup enabled, Model Manager server will continuously back up any data written to the managed SQL database server and to the managed resources directory to their respective backup directories — see Backup of a Managed SQL Database Server and Backup of a Managed Resources Directory. These two backup directories together form the complete backup of the Model Manager server database itself.
For a Model Manager server database using external server components, you must manually set up backup routines of their data using external backup software. For External SQL Databases, this involves a backup of the SQL database used by the Model Manager server database. For External Resources Directories, this involves a backup of the directory itself, including all its subfolders and files.
Read Installation Planning for general guidelines on server setups and where to place backup directories.
Restore of a Model Manager Server Database
The steps required to restore a Model Manager server database from backup depend on how much has been lost in terms of configuration and if the database uses managed server components, external server components, or possibly a mixture thereof.
Configuration Settings Unavailable
If the Model Manager server Preference Directory has been lost, and there is no backup of that directory available, you will first need to recreate the configuration for the Model Manager server database. Proceed as follows:
1
Reinstall the Model Manager server — see Modifying an Installation. Make sure to select Custom under Add a Model Manager server database in the Server step of the installation to avoid ending up with a new, empty, database.
2
3
On the Add Database page — which you will be redirected to after saving your new password — configure the server components for the Model Manager database:
-
-
-
See also Adding Databases.
4
Click the Save button. Model Manager server proceeds by adding a Model Manager database with all its data restored from the backup locations.
It may take Model Manager some time to restore the data directories. This will be evident by a lack of complete search results on the Home page until the restoration has completed.
As an alternative to immediately proceeding with step 3, you can also manually restore each managed server component separately before adding the Model Manager database. This is useful, for example, when the backup directory of the managed SQL database server contains multiple SQL databases, and you want to take control over which one is used for the restored Model Manager database. Begin by recreating the configuration of each managed server component:
Remember to specify the path for the backup directory of the managed SQL database server, as well as for the backup directory of the managed resources directory. If you set the Trigger mode for restoring to Automatic (most recent) for the managed SQL database server, and its data directory is missing on disk, the data directory will be automatically restored from backup when the server starts. Similarly, if the Trigger mode for restoring is set to Automatic, a managed resources directory is automatically restored if the directory is missing on disk.
Proceed with step 3 to recreate a configuration for the Model Manager database — optionally replacing managed server components with external server components.
Configuration Settings Available
When a configuration for the Model Manager server database is available:
1
2
-
-
For a managed SQL database server, click the Trigger Restore button on the Managed SQL Database Server page unless a restore has already been triggered automatically. Wait until the restore finishes. See also Restore of a Managed SQL Database Server.
3
-
-
For a managed resources directory, click the Trigger Restore button on the Managed Resources Directory page unless a restore will trigger automatically. The restore will begin once the database is activated again; see below. See also Restore of a Managed Resources Directory.
4
-
-
5
At this point, if the Model Manager server database uses a managed resources directory, all missing files will be restored from the backup directory to the data directory. All search indexes will also be populated with search data loaded from the SQL database as needed. The time for both of these steps to complete depends on the size of the database.