Set-VBRRepositoryMountServerOptions
Short Description
Modifies settings of a mount server.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRRepositoryMountServerOptions -Options <VBRRepositoryMountServerOptions> [-MountServer <CHost>] [-EnableVPowerNFS] [-VPowerNFSPort <Int32>] [-MountPort <Int32>] [-MountFolder <String>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies settings of a mount server that you can assign to a backup repository and use for restore operations.
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 |
|---|---|---|---|---|---|
|
EnableVPowerNFS |
Enables the Veeam vPower NFS Service on the mount server. If you enable this option, Veeam vPower NFS Service will be be able to access the backup repository.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
MountFolder |
Specifies a folder to keep cache that is created during mount operations. |
|
False |
Named |
False |
|
MountPort |
Specifies the port that the Veeam vPower NFS Service will use to mount the vPower NFS datastore to the ESXi host.
Default: |
|
False |
Named |
False |
|
MountServer |
Specifies a server that you want to use as a mount server. The cmdlet will apply settings to this server. Note: If you do not specify this parameter, the cmdlet will apply settings to the backup server.
Accepts the |
|
False |
Named |
False |
|
Options |
Specifies settings of a mount server that you want to modify.
Accepts the |
True |
Named |
False |
|
|
VPowerNFSPort |
Specifies the port that the Veeam vPower NFS Service will use to connect to the target NFS share.
Default: |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRRepositoryMountServerOptions
Examples
Modifying Cache Folder Settings for Mount Server
This example shows how to specify a new cache folder for the WinSrv2047 mount server. The mount server will keep cache in the C:\Backup\Veeam\IRCache\ folder instead of the default C:\ProgramData\Veeam\Backup\IRCache\ folder.
|
$server = Get-VBRServer -Name "WinSrv2047" $mountoptions = New-VBRRepositoryMountServerOptions -MountServer $server -EnableVPowerNFS -MountFolder "C:\ProgramData\Veeam\Backup\IRCache\" Set-VBRRepositoryMountServerOptions -Options $mountoptions -MountFolder "C:\Backup\Veeam\IRCache\" |
Perform the following steps:
- Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify theNameparameter value. Save the result to the$servervariable. - Run the
New-VBRRepositoryMountServerOptionsDefines settings of a mount server. cmdlet. Specify theMountServer,EnableVPowerNFSandMountFolderparameters. Save the result to the$mountoptionsvariable. - Run the
Set-VBRRepositoryMountServerOptionscmdlet. Set the$mountoptionsvariable as theOptionsparameter value. Specify theMountFolderparameter value.
Related Commands
Get-VBRServerReturns hosts connected to the backup infrastructure.New-VBRRepositoryMountServerOptionsDefines settings of a mount server.