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 Model Manager server database using Managed Server Components can be configured from the Model Manager server web interface. Backup for a database using external components needs to be configured outside of the Model Manager server.
Backup of a Model Manager Server Database
Backup for a Model Manager server database involves configuring separate backups for its SQL database and resources directory. Its search indexes do not require backup.
See Backup of a Managed SQL Database Server and Backup of a Managed Resources Directory for the backup of Managed Server Components.
See External SQL Databases and External Resources Directories for the backup of custom server components.
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.
If the Model Manager server Preference Directory is missing, and there is no backup of that directory available, you will first need to recreate the configuration for the Model Manager server database. For Databases with Managed Server Components, begin by recreating the configuration of each managed server component:
Remember to specify the path for the backup root 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.
Follow the steps in Adding Databases to recreate a configuration for the Model Manager server database — optionally replacing managed server components with external server components.
When a configuration for the Model Manager server database is available (for example, after recreating it):
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.