Copy-VBRNASBackup (obsolete)

Short Description

Copies file share backups to another repository or local or shared folder.

Note

This cmdlet is obsolete. Run the Copy-VBRUnstructuredBackupCopies backups created by file backup jobs and object storage backup jobs to another location. cmdlet instead.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Copy-VBRNASBackup -Backup <VBRNASBackup[]> -BackupRepository <CBackupRepository>

[-ArchiveRepository <IRepository>] [-RunAsync] [<CommonParameters>]

Detailed Description

This cmdlet copies file share backups to another repository or local or shared folder. 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

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

ArchiveRepository

Specifies the archive repository. The cmdlet will copy the archive associated with the file share backup being copied to this long-term archive repository.

Accepts the CBackupRepository object. To get this object, run the following cmdlets:

  • Get-VBRBackupRepositoryReturns a list of backup repositories.: use this cmdlet to get backup repositories.
  • Get-VBRObjectStorageRepositoryReturns object storage added as backup repositories to Veeam Backup & Replication.: use this cmdlet to get object storage repositories.

IRepository

False

Named

False

Backup

Specifies an array of file share backups. The cmdlet will copy these backups to a specified backup repository.

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 (ByValue)

BackupRepository

Specifies the backup repository. The cmdlet will copy the specified file share backups to this backup repository.

Accepts the CBackupRepository object. To get this object, run the Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet.

CBackupRepository

True

Named

False

RunAsync

Defines that the command returns immediately without waiting for the task to complete.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Copying File Share Backups to Another Repository

This example shows how to copy file share backups to another repository.

$backup = Get-VBRNASBackup

$repository = Get-VBRBackupRepository

Copy-VBRNASBackup -Backup $backup[3] -BackupRepository $repository

Perform the following steps:

  1. Run the Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet. Save the result to the $backup variable.
  2. Run the Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Save the result to the $repository variable.
  3. Run the Copy-VBRNASBackup cmdlet. Set the $backup[3] variable as the Backup parameter value. Set the $repository variable as the BackupRepository parameter value.
  • Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead.
  • Get-VBRBackupRepositoryReturns a list of backup repositories.

Page updated 2026-08-19

Page content applies to build 13.1.1.18