These pages cover SQL Clone Technical Preview 0.2 to 0.3, which is not the latest version. Help for other versions is also available.

Save-InstantCloneOptions

Save options.

Syntax

Save-InstantCloneOptions [-SnapshotFolder <string>] [-SharedSnapshotFolder <string>] [-CloneFolder <string>] [-DefaultConnectionId <string>] [<CommonParameters>]

Description

Use this to setup InstantClone. You can set storage folders, and which connection to use by default.

You can specify whichever options you like, and in any order.

Parameters

-SnapshotFolder <System.String>

Where to store snapshots. Typically, this will be a folder like C:\MySnapshots

Aliases None
Required?false
Position?named
Default Value None
Accept Pipeline Inputfalse
Accept Wildcard Charactersfalse

-SharedSnapshotFolder <System.String>

Where to store shared snapshots. Ideally, all your team will point their SharedSnapshotFolder at the same fileshare, enabling you to let colleagues use your snapshot, and you use theirs. These are snapshots created with the -PutInSharedFolder parameter, or snapshots shared with the Save-SharedSnapshot cmdlet. Typically, this will be a folder like \\john-pc\shared\sharedSnapshots

Aliases None
Required?false
Position?named
Default Value None
Accept Pipeline Inputfalse
Accept Wildcard Charactersfalse

-CloneFolder <System.String>

Where to store clones. Typically, this will be a folder like C:\MySnapshots

Aliases None
Required?false
Position?named
Default Value None
Accept Pipeline Inputfalse
Accept Wildcard Charactersfalse

-DefaultConnectionId <System.String>

The ID of the default connection to use

Aliases None
Required?false
Position?named
Default Value None
Accept Pipeline Inputfalse
Accept Wildcard Charactersfalse

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None.
    You cannot pipe input to this cmdlet.

Return values

The output type is the type of the objects that the cmdlet emits.

  • None.
    You cannot pipe input to this cmdlet.

Examples

---------- EXAMPLE 1 ----------

Save-InstantCloneOptions -SharedSnapshotFolder \\John-PC\Shared\SharedSnapshots -SourceConnectionString "Server=.\sql2012;Trusted_Connection=True;"

---------- EXAMPLE 2 ----------

Save-InstantCloneOptions -DefaultConnection"

  • No labels