hub backup model
Backs up a specific Data Hub model.
Use the hub backup model command to perform a full or incremental backup of a specified Data Hub model. The incremental method adds changes that were made to a model since a previous update. A backup is located in the default backup folder for Data Hub models unless a different location is specified with the path (--p) option.
Usage
hub backup model --m model --f fullBackup --p pathRequired | Argument | Description |
---|---|---|
Yes | --m model | Specifies the name of the model you want to backup. |
No | --f fullBackup | Performs a full or incremental backup of the model, where
fullBackup is one of the following:
|
No | --p path |
Specifies the path and folder to which you want to save the backup. If you omit this option the backup is placed 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 backs up a single model called ConsumerFraud to a folder called HubModelBackup in the C:\DataHub directory. If a model by that same name already exists, the restored model will be updated.
hub backup model --m ConsumerFraud --f false --p C:\DataHub\HubModelBackups\model.ConsumerFraud