Vssadmin
Updated: January 21, 2005
- vssadmin add shadowstorage
- vssadmin create shadow
- Vssadmin delete shadows
- vssadmin delete shadowstorage
- vssadmin list providers
- vssadmin list shadows
- vssadmin list shadowstorage
- vssadmin list volumes
- vssadmin list writers
- vssadmin resize shadowstorage
To view the command syntax, click a command:
vssadmin add shadowstorage
Syntax
Remarks
- The maximum space that the association may occupy on the shadow copy storage volume is MaxSizeSpec. If MaxSizeSpec is not specified, there is no limit to the amount of space it may use. If the maximum number of shadow copy storage associations have already been made, an error is given. MaxSizeSpec must be 100 MB or greater and accepts the following suffixes: KB, MB, GB, TB, PB and EB. If a suffix is not supplied, MaxSizeSpec is in bytes.
vssadmin create shadow
Syntax
Remarks
- The ForVolumeSpec must be a local volume drive letter or mount point. If MaxRetryMinutes is specified and there is another process creating a shadow copy, vssadmin will continue to try to create the shadow copy for MaxRetryMinutes minutes.
Vssadmin delete shadows
Syntax
Remarks
- If you use /oldest, the oldest shadow copy is deleted.
- If you use /Shadow=ShadowId, it deletes the shadow copy with that shadow copy ID.
- You can delete shadow copies that have the client accessible type only.
- You can get the shadow copy ID by using the list shadows command. When you type a shadow copy ID, use the following format: {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}, where the X's are hexadecimal characters.
vssadmin delete shadowstorage
Syntax
Remarks
- Deletes an existing shadow copy storage association between ForVolumeSpec and OnVolumeSpec.
- If you do not use /on, all shadow copy storage associations will be deleted for the given ForVolumeSpec.
vssadmin list providers
vssadmin list shadows
Syntax
Remarks
- Without any options, all shadow copies on the system are displayed ordered by shadow copy set.
- You can get the shadow copy ID or the provider ID by using the list shadows command. When you type a provider, shadow, and shadow set ID, use the following format: {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}, where the X's are hexadecimal characters.
vssadmin list shadowstorage
Syntax
Remarks
- To list all associations for a given volume, specify a ForVolumeSpec and do not use the /on command-line option.
- To list all associations on a given volume, specify a OnVolumeSpec and do not use the /for command-line option.
vssadmin list volumes
vssadmin list writers
vssadmin resize shadowstorage
Syntax
Remarks
- Resizing the storage association may cause shadow copies to disappear.
- If you do not specify MaxSizeSpec, there is no limit to the amount of space it may use. As certain shadow copies are deleted, the shadow copy storage space will then shrink.
- MaxSizeSpec must be 1MB or greater and accepts the following suffixes: KB, MB, GB, TB, PB and EB. If a suffix is not supplied, MaxSizeSpec is in bytes.
Remarks
- Input that contains spaces must be surrounded by quotation marks (").
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |