New-VBRComputerDestinationOptions
Short Description
Creates the target location settings for backup policies.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
LocalNew-VBRComputerDestinationOptions -LocalPath <String> -OSPlatform <VBRAgentType> [<CommonParameters>]
-
SharedNew-VBRComputerDestinationOptions -OSPlatform <VBRAgentType> -NetworkFolderPath <String>
[-TargetShareType <VBRDestinationTargetShareType>] [-UseNetworkCredentials]
[-NetworkCredentials <CCredentials>] [<CommonParameters>]
-
RepositoryNew-VBRComputerDestinationOptions -OSPlatform <VBRAgentType> [-BackupServerName <String>]
-BackupRepository <CBackupRepository> [<CommonParameters>]
Detailed Description
This cmdlet creates the VBRComputerDestinationOptions object that contains the target location settings for the backup policy. Veeam Backup & Replication applies this policy to the protected computers.
Run the Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet to get the repository.
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 |
|
True |
Named |
True (ByValue) |
|
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. |
|
True |
Named |
False |
|
OSPlatform |
Specifies the OS of the protected computers:
|
|
True |
Named |
False |
|
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.
Default: |
|
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
Example 1. Creating Target Location Settings for Veeam Agent Backup Policy (Local Drive)
|
This command creates target location settings for the backup policy that Veeam Agent job applies to the protected computers. The job will save the backups to a local drive of the protected computer. Use the
|
Example 2. Creating Target Location Settings for Veeam Agent Backup Policy (Network Shared Folder)
|
This example shows how to create target location settings for the backup policy that Veeam Agent job applies to the protected computers. The job will save the backups to the network shared folder.
Perform the following steps:
|
Example 3. Creating Target Location Settings for Veeam Agent Backup Policy (Backup Repository)
|
This example shows how to create 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.
Perform the following steps:
|
Related Commands
Get-VBRBackupRepositoryReturns a list of backup repositories.