Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tcartwright opened this issue Feb 21, 2023 · 0 comments
Open

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

tcartwright opened this issue Feb 21, 2023 · 0 comments

Comments

@tcartwright
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant