Set-VBRComputerDestinationOptions
Short Description
Modifies the target location for Veeam Agent backup policies.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
LocalSet-VBRComputerDestinationOptions -Options <VBRComputerDestinationOptions> -LocalPath <String> [<CommonParameters>]
-
SharedSet-VBRComputerDestinationOptions -Options <VBRComputerDestinationOptions> [-NetworkFolderPath <String>]
[-TargetShareType <VBRDestinationTargetShareType>] [-UseNetworkCredentials]
[-NetworkCredentials <CCredentials>] [<CommonParameters>]
-
RepositorySet-VBRComputerDestinationOptions -Options <VBRComputerDestinationOptions> [-BackupServerName <String>]
[-BackupRepository <CBackupRepository>] [<CommonParameters>]
Detailed Description
This cmdlet modifies the target location settings for the backup policy that Veeam Agent job applies to the protected computers.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupRepository |
Use this option if you want to save a backup on either of the following types of a backup repository:
Accepts the |
|
False |
Named |
False |
|
BackupServerName |
Specifies the DNS name or an external IP address of the Veeam backup server that manages the target backup repository. Note: You can use only the Veeam backup server where the Veeam Agent backup job is configured. |
|
False |
Named |
False |
|
LocalPath |
Use this parameter if you want to keep backups on the following target locations:
|
|
True |
Named |
False |
|
NetworkCredentials |
Specifies the credentials which Veeam Agent will use to authenticate to the network shared folder. |
|
False |
Named |
False |
|
NetworkFolderPath |
Use this option if you want to keep backups in a network shared folder. |
|
False |
Named |
False |
|
Options |
Specifies the target location settings that you want to modify.
Accepts the |
|
True |
Named |
True (ByValue) |
|
TargetShareType |
Specifies the protocol that you will use to keep backups on shared folders.
Note: The NFS protocol type does not work for Windows computers. |
|
False |
Named |
False |
|
UseNetworkCredentials |
Defines that the network shared folder requires authentication. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRComputerDestinationOptions object that contains the target location settings for the backup policy.
Examples
Modifying Target Location Settings for Veeam Agent Backup Policy
This example shows how to modify target location settings for the backup policy that Veeam Agent job applies to the protected computers. The job will save the backups to the backup repository managed by the Veeam backup server.
|
$job = Get-VBRComputerBackupJob -Name "WinPolicy" $destination = $job.DestinationOptions $repository = Get-VBRBackupRepository -Name "Repository" Set-VBRComputerDestinationOptions -Options $destination -BackupRepository $repository |
Perform the following steps:
- Run the
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Get the
DestinationOptionsproperty of the$jobvariable. Save the result to the$destinationvariable. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Specify theNameparameter value. Save the result to the$repositoryvariable. - Run the
Set-VBRComputerDestinationOptionscmdlet. Set the$destinationvariable as theOptionsparameter value. Set the$repositoryvariable as theBackupRepositoryparameter value.
Related Commands
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies.Get-VBRBackupRepositoryReturns a list of backup repositories.