hub model copy
Use the hub model copy command to copy the contents of a Data Hub model but leave it and its metadata in place.
Usage
hub model copy --m ModelName --nm NewModelName --cm TrueOrFalse --cq TrueOrFalseRequired | Argument | Description |
---|---|---|
Yes | --m ModelName | Specifies the name of the model you want to copy. |
Yes | --nm ModelName | Specifies the name of the new model. |
No | --cm TrueOrFalse | Specifies whether to copy any existing monitors from the old model into the new
model, where TrueOrFalse is one of the following:
|
No | --cq TrueOrFalse | Specifies whether to copy any saved queries from the old model into the new model,
where TrueOrFalse is one of the following:
|
Example
This example copies a model called CustomerBanking_DataType from the default backup folder and names the copy CustomerBanking_DataType_New. It also copies any monitors or queries associated with the old model into the new model.
hub model copy --m CustomerBanking_DataType --nm CustomerBanking_DataType_New --cm true --cq true