Get-VBRNASBackupFLRItemVersion

Short Description

Returns versions of objects backed-up by file backup jobs.

Applies to

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

Syntax

This cmdlet provides parameter sets that allow you to:

  • Get all versions of objects.

Get-VBRNASBackupFLRItemVersion -Item <VBRNASBackupFLRItem>  [<CommonParameters>]

  • Get versions of objects by the object modification date.

Get-VBRNASBackupFLRItemVersion -Item <VBRNASBackupFLRItem> [-ModificationDate <datetime>]  [<CommonParameters>]

  • Get versions of objects by the object version ID.

Get-VBRNASBackupFLRItemVersion -Item <VBRNASBackupFLRItem> [-VersionId <uint64>]  [<CommonParameters>]

  • Get the latest version of objects located in the archive repository.

Get-VBRNASBackupFLRItemVersion -Item <VBRNASBackupFLRItem> [-LatestArchivedVersion]  [<CommonParameters>]

Detailed Description

This cmdlet returns versions of objects backed-up by file backup jobs.

Important

This cmdlet runs only with file-level restore sessions that are created to restore all versions of backups on file shares.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Item

Specifies an object. The cmdlet will return versions of this object.

Accepts the VBRNASBackupFLRItem object. To get this object, run the Get-VBRNASBackupFLRItem cmdlet.

True

Named

False

ModificationDate

Specifies the date when the object was modified. The cmdlet will return versions of objects that were modified on the specified date.

DateTime

False

Named

False

VersionId

Specifies a version ID of the object. The cmdlet will return objects with the specified version ID.

Uint64

False

Named

False

LatestArchivedVersion

Defines that the cmdlet will return the latest version of the object located in the archive repository.

SwitchParameter

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 VBRNASBackupFLRItem and VBRNASBackupFLRFolder objects that contain details about versions of restored guest OS files and folders that have been backed up by file backup jobs.

Examples

Get-VBRNASBackupFLRItemVersion)Example 1. Getting all Versions of Object

This example shows how to get all versions of an object backed-up by a file backup job.

$session = Get-VBRNASBackupFLRSession

$object = Get-VBRNASBackupFLRItem -Session $session

Get-VBRNASBackupFLRItemVersion -Item $object

Perform the following steps:

  1. Run the Get-VBRNASBackupFLRSession cmdlet. Save the result to the $session variable.
  2. Run the Get-VBRNASBackupFLRItem cmdlet. Set the $session variable as the Session parameter value. Save the result to the $object variable.
  3. Run the Get-VBRNASBackupFLRItemVersion cmdlet. Set the $object variable as the Item parameter value.

Get-VBRNASBackupFLRItemVersion)Example 2. Getting Versions of Objects by Modification Date

This example shows how to get versions of an object by the object modification date. Veeam Backup & Replication will return objects that have been modified on 9/9/2019.

$session = Get-VBRNASBackupFLRSession

$object = Get-VBRNASBackupFLRItem -Session $session

Get-VBRNASBackupFLRItemVersion -Item $object -ModificationDate "9/9/2019"

Perform the following steps:

  1. Run the Get-VBRNASBackupFLRSession cmdlet. Save the result to the $session variable.
  2. Run the Get-VBRNASBackupFLRItem cmdlet. Set the $session variable as the Session parameter value. Save the result to the $object variable.
  3. Run the Get-VBRNASBackupFLRItemVersion cmdlet. Set the $object variable as the Item parameter value. Specify the ModificationDate parameter value.

Get-VBRNASBackupFLRItemVersion)Example 3. Getting Versions of Objects by Version ID

This example shows how to get a version of an object by the object version ID. Veeam Backup & Replication will return an object with the 9 version ID.

$session = Get-VBRNASBackupFLRSession

$object = Get-VBRNASBackupFLRItem -Session $session

Get-VBRNASBackupFLRItemVersion -Item $object -VersionId 9

Perform the following steps:

  1. Run the Get-VBRNASBackupFLRSession cmdlet. Save the result to the $session variable.
  2. Run the Get-VBRNASBackupFLRItem cmdlet. Set the $session variable as the Session parameter value. Save the result to the $object variable.
  3. Run the Get-VBRNASBackupFLRItemVersion cmdlet. Set the $object variable as the Item parameter value. Specify the VersionId parameter value.

Related Commands