Skip to content

Trying to create multiple clones on the same target server #225

Description

@tcartwright

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions