Get-VEMDBRestoreSession

Short Description

Returns active restore sessions started to perform restore operations with backed-up MongoDB data.

Product: Veeam Backup & Replication

Product Edition: Enterprise Plus, Veeam Universal License

Syntax

Get-VEMDBRestoreSession [[-SessionId] <Guid>] [<CommonParameters>]

Detailed Description

This cmdlet returns an array of active restore sessions started to perform operations with backed-up MongoDB data. Once you select the restore session you need, you can either get backed-up MongoDB databases using the Get-VEMDBDatabaseReturns backed-up MongoDB databases. cmdlet, or backed-up MongoDB collections using the Get-VEMDBCollectionReturns backed-up MongoDB collections. cmdlet.

Note the difference between a restore session and a restore job. A restore session is a preliminary step where Veeam Explorer for MongoDB has retrieved the backup from the backup repository, pending restore operations. A restore job is the process of restoring data from the backup to the target MongoDB deployment.

Note

  • You can only get an array of restore sessions that are started in PowerShell. The cmdlet does not return restore sessions started in the Veeam Backup & Replication console.
  • The cmdlet only returns an array of restore sessions started within the same PowerShell session.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

SessionId

Specifies the session ID of the necessary restore session.

Guid

False

1

True (ByValue)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.

Output Object

The cmdlet returns the VEMDBRestoreSession[] array that contains settings of the started restore sessions. You can use this object to explore backed-up MongoDB databases and collections and to perform restore operations with MongoDB data.

Examples

Get-VEMDBRestoreSessionExample 1. Getting All Active Restore Sessions

This command returns all active restore sessions. Save the result to the $session variable to be able to use it with other cmdlets.

$session = Get-VEMDBRestoreSession

Get-VEMDBRestoreSessionExample 2. Getting Restore Session by Session ID

This command returns a MongoDB restore session with a specific session ID. Save the result to the $session variable to be able to use it with other cmdlets.

$session = Get-VEMDBRestoreSession -SessionId "b7ced612-1259-4221-810b-f62c21b1c159"

  • Start-VEMDBRestoreSessionStarts a restore session to explore and perform restore operations with backed-up MongoDB data.
  • Stop-VEMDBRestoreSessionStops an active restore session started to perform restore operations with backed-up MongoDB data.

Page updated 2026-08-20

Page content applies to build 13.1.1.18