Add-WssBackupConfiguration
Adds a backup file specification to a volume that is part of a backup.
Syntax
Add-WssBackupConfiguration
[-Volume] <BackupVolume>
[-Configuration] <BackupFileSpec>
[<CommonParameters>]
Description
The Add-WssBackupConfiguration cmdlet adds a backup file specification to a volume that is part of a backup.
Examples
Example : 1: Add a backup file specification to a volume
PS C:\>$ContosoBUVolume10 = Get-WssBackupVolume -AllVolumes PS C:\>$ContosoBUConfig10 = Get-WssBackupConfiguration -Volume $ContosoBUVolume10[3] PS C:\>Add-WssBackupConfiguration -FileSpec $ContosoBUConfig10 -Volume $ContosoBUVolume10[5]
This example adds a backup configuration to a backup volume.
The first command gets a list of backup volumes from the server and stores them in the variable named $ContosoBUVolume10.
The second command gets the backup file specification from the fourth item (located in position 3) in the $ContosoBUVolume10 array.
The third command adds the backup file specification in $ContosoBUConfig10 to the sixth item (located in position 5) in the $ContosoBUVolume10 array.
Parameters
-Configuration
Specifies the backup file specification to add.
Type: | BackupFileSpec |
Aliases: | Config |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Volume
Specifies the volume on which to create the backup file specification.
Type: | BackupVolume |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupVolume
This cmdlet generates the backup source volume with the added file specification.
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for