Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Import-VBRBackup

Short Description

Imports Veeam backups to Veeam Backup & Replication.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

This cmdlet provides 2 parameter sets.

  • To import backups from the server:

Import-VBRBackup [-Server] <CHost> [-FileName] <String> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

  • To import backups from the repository:

Import-VBRBackup [-FileName] <String> [-Repository] <CBackupRepository> [<CommonParameters>]

Detailed Description

This cmdlet imports Veeam backups to Veeam Backup & Replication database. You can import Veeam backups that were, for example, created on other Veeam backup servers or stored on a repository that is newly added to the Veeam Backup & Replication console.

The imported backups are registered in Veeam Backup database. You can use them for any restore operation.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Server

Specifies the server where the backups are located.

True

1

True (ByValue,
ByProperty
Name)

False

FileName

Specifies the path to the backup you want to import.

True

2

False

False

Repository

Specifies the repository where backups are located. You can use the parameter for all types of repositories, including CIFS (SMB) Share and deduplicating storage appliance (Dell EMS Data Domain, ExaGrid, HPE StoreOnce).

True

3

True (ByProperty
Name)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Example 1

This example shows how to import a backup from the server.

You will need to perform the following steps:

  1. Run Get-VBRServer to get the server where the backups are located. Save the result to the $server variable.
  2. Run Import-VBRBackup with the $server variable. Use the FileName parameter to specify the path to the backup you want to import.

PS C:\PS> $server = Get-VBRServer –Name "Fileserver"

PS C:\PS> Import-VBRBackup -Server $server –FileName “C:\Backups\SureBackups\SureBackups.vbm”

Example 2

This example shows how to import a backup from the repository.

You will need to perform the following steps:

  1. Run Get-VBRBackupRepository to get the repository where the backups are located. Save the result to the $repository variable.
  2. Run Import-VBRBackup with the $repository variable. Use the FileName parameter to specify the path to the backup you want to import.

PS C:\PS> $repository = Get-VBRBackupRepository -Name "StoreOnce"

PS C:\PS> Import-VBRbackup -FileName "StoreOnce://10.0.0.1:Backup_Store/Backup_Job/Backup_Job.vbk" -Repository $repository

Related Commands

Get-VBRServer

Get-VBRBackupRepository

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation