dbaclone icon indicating copy to clipboard operation
dbaclone copied to clipboard

Trying to create multiple clones on the same target server

Open tcartwright opened this issue 3 years ago • 0 comments

I am trying to create multiple clones on the same server. When I try to run this command:

PS C:\WINDOWS\system32> New-DcnClone -SqlInstance "server1.com" -Database DB1 -LatestImage -Destination "\\server1\dbaclone\clonedImages\"

I get a warning that the database already exists. I then added the -SkipDatabaseMount parameter like so:

PS C:\WINDOWS\system32> New-DcnClone -SqlInstance "server1.com" -Database DB1 -LatestImage -SkipDatabaseMount -Destination "\\server1\dbaclone\clonedImages\"

produces the following error:

Test-DcnRemoting : Cannot bind argument to parameter 'ComputerName' because it is null.
At C:\Program Files\WindowsPowerShell\Modules\dbaclone\0.10.72\functions\clone\New-DcnClone.ps1:230 char:62
+ ... emote = Test-DcnRemoting -ComputerName $computer.ComputerName -Creden ...
+                                            ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Test-DcnRemoting], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Test-DcnRemoting
 
WARNING: [10:53:26][New-DcnClone] Couldn't connect to host remotely.
Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer

How would I accomplish creating multiple clones of the same database on the same shared server?

tcartwright avatar Feb 21 '23 16:02 tcartwright