hub backup restore

Restores a Data Hub model from a backup.

Use the hub backup restore command to restore the backup of a Data Hub 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.


hub backup restore --m model--d deleteIfExists --p path
Yes--m modelSpecifies the name of the model you want to restore.
No--d deleteIfExistsSpecifies whether to delete an existing model of the same name, where deleteIfExists is one of the following:
Deletes the existing model and restores the backed-up model. This is the default setting.
Leaves the existing model in place and does not restore the backed-up model.
No--p pathSpecifies the path and folder to which the backup was saved. If you omit this option the backup is restored from the following folder:

<Spectrum™ Technology Platform install path>\server\bin\HubBackup


This example restores a backed-up model called ConsumerFraud from the C:\DataHub\HubModelBackup 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\HubModelBackup