Update-VBRNasBackupPath (obsolete)
Short Description
Updates the file path to the source file share.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
NASServer
|
Update-VBRNasBackupPath -Backup <VBRNASBackup> -SourceNASServer <VBRNASServer> -TargetNASServer <VBRNASServer>
[-WhatIf] [-Confirm] [<CommonParameters>] |
-
RootNASServerByName
|
Update-VBRNasBackupPath -Backup <VBRNASBackup> -SourceRootNASServerName <String>
-TargetRootNASServer <VBRNASServer> [-WhatIf] [-Confirm] [<CommonParameters>] |
-
SANEntity
|
Update-VBRNasBackupPath -Backup <VBRNASBackup> -SourceSANEntity <VBRSANEntity> -TargetSANEntity <VBRSANEntity>
[-WhatIf] [-Confirm] [<CommonParameters>] |
-
SanHostByName
|
Update-VBRNasBackupPath -Backup <VBRNASBackup> -SourceSANHostName <String> -TargetSANHost <VBRSANEntity>
[-WhatIf] [-Confirm] [<CommonParameters>] |
Detailed Description
This cmdlet updates the file path to the source file share.
Parameters
Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
Backup
|
Specifies a file share backup. The cmdlet will update the path to the source file share for this backup.
Accepts the VBRNASBackup object. To get this object, run the Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet.
|
VBRNASBackup
|
True
|
Named
|
True (ByPropertyName, ByValue)
|
|
SourceNASServer
|
Specifies the file share server. The cmdlet will update this path/file share/server name to a new one.
Accepts the VBRNASServer object. To get this object, run the Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet.
|
VBRNASServer
|
True
|
Named
|
False
|
|
SourceRootNASServerName
|
Specifies a new name of of the root server. The cmdlet will add this name to a configuration database.
|
String
|
True
|
Named
|
False
|
|
SourceSANEntity
|
Specifies the enterprise NAS system or its volume where the file shares reside. The cmdlet will update the path to this NAS system to a new path.
Accepts the VBRSANEntity object. To create this object, run the Get-NetAppHostReturns NetApp storage systems added to Veeam Backup & Replication. cmdlet.
|
VBRSANEntity
|
True
|
Named
|
False
|
|
SourceSANHostName
|
Specifies the name of the SAN host object to be changed in the backup.
|
String
|
True
|
Named
|
False
|
|
TargetNASServer
|
Specifies the file share server. The cmdlet will update the file share path/name/server name to this one.
Accepts the VBRNASServer object. To get this object, run the Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet.
|
VBRNASServer
|
True
|
Named
|
False
|
|
TargetRootNASServer
|
Specifies the file share server. The cmdlet will update the root server name to this one.
Accepts the VBRNASServer object. To get this object, run the Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet.
|
VBRNASServer
|
True
|
Named
|
False
|
|
TargetSANEntity
|
Specifies the enterprise NAS system or its volume where the file share will reside. The cmdlet will use this NAS system entity as a new one when updating the backup information.
Accepts the VBRSANEntity object. To create this object, run the Get-NetAppHostReturns NetApp storage systems added to Veeam Backup & Replication. cmdlet.
|
VBRSANEntity
|
True
|
Named
|
False
|
|
TargetSANHost
|
Specifies the enterprise NAS system or its volume where the file share will reside. The cmdlet will use this NAS system entity as a new one when updating the backup information.
Accepts the VBRSANEntity object. To create this object, run the Get-NetAppHostReturns NetApp storage systems added to Veeam Backup & Replication. cmdlet.
|
VBRSANEntity
|
True
|
Named
|
False
|
|
Confirm
|
Defines that the cmdlet will display a prompt that asks if you want to continue running the command.
|
SwitchParameter
|
False
|
Named
|
False
|
|
WhatIf
|
Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action.
|
SwitchParameter
|
False
|
Named
|
False
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRNASBackup object that defines results of updating the paths to the protected file share.
Examples
Example 1. Updating Path to Existing Source File Share Protected by a File Backup Job
|
This example shows how to update the path to the existing source SMB or NFS file share or root server protected by a file backup job.
|
$nasbackup = Get-VBRNASBackup -Name "File Backup Job 1"
$sourceserver = Get-VBRNASServer -Backup $nasbackup
$targetserver = Get-VBRNASServer -Name "\\WinSRV2049\Documents"
Update-VBRNasBackupPath -Backup $nasbackup -SourceNASServer $sourceserver -TargetNASServer $targetserver |
Perform the following steps:
- Run the
Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $nasbackup variable.
- Run the
Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet. Set the $nasbackup variable as the Backup parameter value. Save the result to the $sourceserver variable.
- Run the
Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $targetserver variable.
- Run the
Update-VBRNasBackupPath cmdlet. Specify the following settings:
- Set the
$nasbackup variable as the Backup parameter value.
- Set the
$sourceserver variable as the SourceNASServer parameter value.
- Set the
$targetserver variable as the TargetNASServer parameter value.
|
Example 2. Updating Name of Root File Share Server
|
This example shows how to update the name of the root server to the name that does not exist in the Veeam Backup & Replication database.
|
$nasbackup = Get-VBRNASBackup -Name "File Backup Job 1"
$targetserver = Get-VBRNASServer -Name "\\WinSRV2049\Reports"
Update-VBRNasBackupPath -Backup $nasbackup -SourceRootNASServerName "\\WinSRV2049\Root" -TargetRootNASServer $targetserver |
Perform the following steps:
- Run the
Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $nasbackup variable.
- Run the
Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $targetserver variable.
- Run the
Update-VBRNasBackupPath cmdlet. Specify the following settings:
- Set the
$nasbackup variable as the Backup parameter value.
- Specify the
SourceRootNASServerName parameter value.
- Set the
$targetserver variable as the TargetNASServer parameter value.
|
Example 3. Updating SAN Host
|
This example shows how to update the SAN host.
|
$nasbackup = Get-VBRNASBackup -Name "File Backup Job 1"
$sourcenetapp = Get-NetAppHost -Name "pdc-ontap-1"
$targetnetapp = Get-NetAppHost -Name "pdc-ontap-3"
Update-VBRNasBackupPath -Backup $nasbackup -SourceSANEntity $sourcenetapp -TargetSANEntity $targetnetapp |
Perform the following steps:
- Run the
Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $nasbackup variable.
- Run the
Get-NetAppHostReturns NetApp storage systems added to Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save the result to the $sourcenetapp variable.
- Run the
Get-NetAppHostReturns NetApp storage systems added to Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save the result to the $targetnetapp variable.
- Run the
Update-VBRNasBackupPath cmdlet. Specify the following settings:
- Set the
$nasbackup variable as the Backup parameter value.
- Set the
$sourcenetapp variable as the SourceSANEntity parameter value.
- Set the
$targetnetapp variable as the TargetSANEntity parameter value.
|
Example 4. Updating SAN Host Name
|
This example shows how to update the name of the SAN host. The cmdlet will change the SAN hpst name from pdc-ontap-3 to pdc-ontap-5.
|
$nasbackup = Get-VBRNASBackup -Name "File Backup Job 1"
$targetnetapp = Get-NetAppHost -Name "pdc-ontap-3"
Update-VBRNasBackupPath -Backup $nasbackup -SourceSANHostName "pdc-ontap-5" -TargetSANHost $targetnetapp |
Perform the following steps:
- Run the
Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $nasbackup variable.
- Run the
Get-NetAppHostReturns NetApp storage systems added to Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save the result to the $targetnetapp variable.
- Run the
Update-VBRNasBackupPath cmdlet. Specify the following settings:
- Set the
$nasbackup variable as the Backup parameter value.
- Specify the
SourceSANHostName parameter value.
- Set the
$targetnetapp variable as the TargetSANHost parameter value.
|
Related Commands
Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead.
Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead.