Copy-VBRBackup
Short Description
Copies backups to a repository or local or shared folder.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
PathCopy-VBRBackup -Backup <CBackup> [-Name <String[]>] [-Path <String>] [-ShareCredentials <CCredentials>]
[-AutoDelete <VBRMoveCopyRetention>] [-RetentionNumber <Int32>]
[-RetentionPeriodType <VBRRetentionPeriodType>] [-RunAsync] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
-
RepositoryCopy-VBRBackup -Backup <CBackup> [-Name <String[]>] [-Repository <CBackupRepository>]
[-AutoDelete <VBRMoveCopyRetention>] [-RetentionNumber <Int32>]
[-RetentionPeriodType <VBRRetentionPeriodType>] [-RunAsync] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
Detailed Description
This cmdlet copies the whole backup chains to a repository or local or shared folder.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AutoDelete |
Specifies the time interval after which Veeam Backup & Replication will delete copied backups. The parameter accepts the following values:
|
|
False |
Named |
False |
|
Backup |
Specifies the backups that will be copied.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Force |
Defines that the cmdlet will copy backups without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
Name |
Specifies an array of names of the workloads that you want to move. Note: This parameter applies only if backups are per-machine with metadata for each workload. |
|
False |
Named |
True (ByPropertyName, ByValue) |
|
Path |
Specifies a path to the local or shared folder to which you want to copy backups. |
|
False |
Named |
True (ByPropertyName, ByValue) |
|
Repository |
Specifies the repository to which you want to copy backups.
Accepts the |
|
False |
Named |
True (ByPropertyName, ByValue) |
|
RetentionNumber |
For the Specifies the period of time to keep the copied data. After this period finishes, Veeam Backup & Replication will remove data. |
|
False |
Named |
False |
|
RetentionPeriodType |
Specifies the type of the retention policy. You can set the following types:
Use the
Note: Use this parameter if the |
|
False |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
ShareCredentials |
Specifies the credentials that will be used to access the shared folder.
Accepts the |
|
False |
Named |
True (ByPropertyName, ByValue) |
|
Confirm |
Defines that the cmdlet will display a prompt that asks if you want to continue running the command. |
|
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 VBRCopyBackupSession object that contains settings of the copy session.
Examples
Copying Backups
This example shows how to copy backups to a repository.
|
$backup = Get-VBRBackup $repository = Get-VBRBackupRepository Copy-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
Copy-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.