Copy-VBRUnstructuredBackup
Short Description
Copies backups created by file backup jobs and object storage backup jobs to another location.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Copy-VBRUnstructuredBackup -Backup <VBRUnstructuredBackup[]> -BackupRepository <CBackupRepository> [-ArchiveRepository <IRepository>] [-RunAsync] [-RetrievalSettings <VBRUnstructuredBackupColdStorageRetrievalSettings>] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet copies backups created by file backup jobs and object storage backup jobs to one of the following locations:
- Another repository
- Local folder
- Shared folder
- Archive repository
Veeam Backup & Replication copies the whole backup chain. When Veeam Backup & Replication performs the copy operation, it disables the job, copies files to the target location and then enables the job.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ArchiveRepository |
Specifies the archive repository. The cmdlet will copy the backups created by file backup jobs and object storage backup jobs to this long-term archive repository.
Accepts the
|
|
False |
Named |
False |
|
Backup |
Specifies an array of backups created by file backup jobs and object storage backup jobs. The cmdlet will copy these backups to a specified backup repository.
Accepts the |
True |
Named |
True (ByValue) |
|
|
BackupRepository |
Specifies the backup repository. The cmdlet will copy the backups created by file backup jobs and object storage backup jobs to this backup repository.
Accepts the |
|
True |
Named |
False |
|
Force |
Defines that the cmdlet will copy unstructured data backups without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
RetrievalSettings |
Specifies the retrieval policy settings. The cmdlet will use these settings to retrieve data from archive object storage repositories. Note: If you do not provide this parameter, the cmdlet will prompt you to use the default retrieval policy settings.
Accepts the |
|
False |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Copying Object Storage Backups to Another Repository
This example shows how to copy object storage backups to another repository.
|
$backup = Get-VBRUnstructuredBackup $repository = Get-VBRBackupRepository Copy-VBRUnstructuredBackup -Backup $backup[3] -BackupRepository $repository |
Perform the following steps:
- Run the
Get-VBRUnstructuredBackupReturns backup files created by file backup jobs and object storage backup jobs. 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-VBRUnstructuredBackupcmdlet. Set the$backup[3]variable as theBackupparameter value. Set the$repositoryvariable as theBackupRepositoryparameter value.
Related Commands
Get-VBRUnstructuredBackupReturns backup files created by file backup jobs and object storage backup jobs.Get-VBRBackupRepositoryReturns a list of backup repositories.