Move-VBRBackup
Short Description
Moves all backups of a job to another repository or specific workloads and their backups to another job.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
Backup (Default)Move-VBRBackup -Backup <CBackup> -Repository <CBackupRepository> [-RunAsync] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
-
TruePerVmMove-VBRBackup -Backup <CBackup> -Name <String[]> -Job <CBackupJob> [-RunAsync] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
Detailed Description
This cmdlet moves backups to another repository or to another job. For more information on the move operation and its considerations, see the Moving Backups section in the Veeam Backup & Replication User Guide.
When you move backups to another repository, the cmdlet reconfigures the job to target to the new location. When you move workload and their backups to another job, backups are moved to the repository which the specified job is targeted to.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Backup |
Specifies backups that will be moved.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Force |
Defines that the cmdlet will move backups without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
Job |
Specifies the job to which you want to move workloads and their backups.
Note: This parameter applies only if backups are true per-machine (with metadata for each workload). This parameter is required if the
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Name |
Specifies an array of names of the workloads that you want to move.
Note: This parameter applies only if backups are true per-machine (with metadata for each workload). This parameter is required if the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Repository |
Specifies the repository to which backups will be moved.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Confirm |
Defines that the cmdlet will display a prompt that asks if you want to continue running the command.
Note: Microsoft PowerShell enables the |
|
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. |
|
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 VBRMoveBackupSession object that contains settings of the move session.
Examples
Moving Backups
This example shows how to move all backups to another repository.
|
$backup = Get-VBRBackup $repository = Get-VBRBackupRepository Move-VBRBackup -Backup $backup -Repository $repository |
Perform the following steps:
- Run the
Get-VBRBackupReturns backups. cmdlet. Save the result to the$backupvariable. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Save the result to the$repositoryvariable. - Run the
Move-VBRBackupcmdlet. Set the$backupvariable as theBackupparameter value. Set the$repositoryvariable as theRepositoryparameter value.
Related Commands
Get-VBRBackupReturns backups.Get-VBRBackupRepositoryReturns a list of backup repositories.