Copy-VBRNASBackup (obsolete)
Short Description
Copies file share backups to another repository or local or shared folder.
Note |
|
This cmdlet is obsolete. Run the |
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
|
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
|
|
False |
Named |
False |
|
Backup |
Specifies an array of file share backups. 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 specified file share backups to this backup repository.
Accepts the |
|
True |
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 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:
- 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$backupvariable.
- Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Save the result to the$repositoryvariable.
- Run the
Copy-VBRNASBackupcmdlet. Set the$backup[3]variable as theBackupparameter value. Set the$repositoryvariable as theBackupRepositoryparameter value.
Related Commands
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.