2010-08-11 04:53 PM - edited 2015-12-18 01:33 AM
With smogui we can make a clone without an explicit clone specification for us however it looks like if we use the CLI (smo clone create) we have to provide a clone specification. Is there a way to get around this problem anyone? Or is there a generic clone specification that behave similarly to the smogui.
2010-08-11 06:18 PM
A clonespec is required for cloning from either the GUI or CLI
I am not sure whether you are asking about reusing an existing
clonespec, created with or without the GUI for another clone operation?
whether you are asking about being able to create a clonespec from the
CLI similar to what is done behind the scenes in the GUI?
Perhaps look up the 'smo clone template' command.
2010-08-12 07:12 AM
Thanks for your input.
What was trying to say is that with the smogui we have the option to let smo create/initialize a clone spec for us before it performs the clone operation. But we dont have this same option when using the CLI. I would like to have the program creates a template behind the scene when using CLI. Any suggestions please.
2010-08-12 09:48 AM
Yes, per my earlier reply, the 'smo clone template' command.
From the IAG:
The following example creates a clone specification template from the backup with the label full_backup_sales_May. Once the smo clone template command completes, the clone specification template is complete.
smo clone template -profile SALES1 -backup-label full_backup_sales_May
Operation Id [8abc01ec0e79004b010e79006da60001] succeeded.
2010-08-16 02:08 PM
Thank you for being patient, really sorry, I used a wrong word in my discussion.
smo clone template creates a "template" and not a substantiated clone specification that can be used as input in "clone create" command.
smogui gives us the option to create a clone using a clone specification it creates/initializes.
2010-09-07 10:43 AM
You are right, the CLI expects an existing clone spec file. You can either create it once using the GUI and then pass it onto the CLI for future clones or use the "smo clone template" command like Mark suggested.