Partager via


Vssadmin add shadowstorage

 

Applies To: Windows Server 2003, Windows Server 2008, Windows Server 2003 R2, Windows Server 2008 R2, Windows Server 2012, Windows 8

Adds a shadow copy storage association for a specified volume.

For examples of how to use this command, see Examples.

Syntax

vssadmin add shadowstorage /for=<ForVolumeSpec> /on=<OnVolumeSpec> [/maxsize=<MaxSizeSpec>]

Parameters

Parameter

Description

/for=<ForVolumeSpec>

Specifies the volume for which the shadow copy storage association is to be added.

/on=<OnVolumeSpec>

Specifies the volume to be used as storage for the volume that is defined in the /for parameter.

/maxsize=<MaxSizeSpec>

Specifies the maximum amount of storage space that can be used on the volume specified in the /on parameter. If MaxSizeSpec is not specified, there is no limit placed on the amount of space that can be used. If the maximum number of shadow copy storage associations have already been made, an error is returned. Note that MaxSizeSpec must be 300 MB or greater and it must be expressed in one of the following units: bytes, KB, MB, GB, TB, PB, or EB. These units can be abbreviated as B, K, M, G, T, P, and E, respectively. If no unit is specified, MaxSizeSpec uses bytes (B) by default.

Examples

To specify that for volume C, volume D is to be used for storage and the maximum size for storage space is to be 900 MB, type:

vssadmin add shadowstorage /for=c: /on=d: /maxsize=900mb

Additional references

Command-Line Syntax Key

Vssadmin