hub schema copy

Use the hub schema copy command to copy a Data Hub model's metadata, monitors, and queries.

Usage

hub schema copy --m ModelName --nm NewModelName --cm TrueOrFalse --cq TrueOrFalse
Required Argument Description
Yes --m ModelName Specifies the name of the model whose schema 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:
true
Copies monitors. This is the default setting.
false
Does not copy monitors.
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:
true
Copies queries. This is the default setting.
false
Does not copy queries.

Example

This example copies the schema from a model called PersonalLending from the default backup folder and names the copy PersonalLending_New. It also copies any monitors associated with the old model but does not copy any queries associated with the old model.

hub schema copy --m PersonalLending --nm PersonalLending_New --cm true --cq false