hub backup restore
Restores a Context Graph model from a backup.
Use the hub backup restore command to restore the backup of a Context Graph model. You may optionally choose whether to restore a model only when there is not already an existing model of the same name. The command restores a model from the default backup location if you do not specify a different location.
Usage
hub backup restore --m model--d deleteIfExists --p pathRequired | Argument | Description |
---|---|---|
Yes | --m model | Specifies the name of the model you want to restore. |
No | --d deleteIfExists | Specifies whether to delete an existing model of the same name, where
deleteIfExists is one of the following:
|
No | --p path | Specifies the path and folder to which the backup was saved. If you omit this option the backup is restored from the default backup directory. Note: The default backup directory location (SpectrumFolder/server/modules/hub/db/backups) may be changed by uncommenting and editing the hub.models.path.base setting in the SpectrumFolder/server/modules/hub/hub.properties file. |
Example
This example restores a backed-up model called ConsumerFraud from the C:\DataHub\GraphModelBackup folder. If a model by that same name already exists, the restored model will overwrite it.
hub backup restore --m ConsumerFraud --d true --p C:\DataHub\GraphModelBackup