Start-VEMDBRestoreSession
Short Description
Starts a restore session to explore and perform restore operations with backed-up MongoDB data.
Product: Veeam Backup & Replication
Product Edition: Enterprise Plus, Veeam Universal License
Syntax
|
Start-VEMDBRestoreSession [-RestorePoint] <IVBRApplicationRestorePoint> [<CommonParameters>] |
Detailed Description
This cmdlet starts a new restore session, establishes a connection to the backup server and retrieves a backed-up MongoDB replica set. Within the restore session, you can get MongoDB databases with the Get-VEMDBDatabaseReturns backed-up MongoDB databases. cmdlet, and MongoDB collections with 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.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
RestorePoint |
Specifies a restore point used to start a new restore session. You will be able to use the session to perform restore operations with MongoDB data in the restore point.
Accepts the |
|
True |
0 |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.
Output Object
The cmdlet returns the VEMDBRestoreSession object that contains settings of the started restore session. You can use this object to explore backed-up MongoDB databases and collections and to perform restore operations with MongoDB data.
Examples
Starting Restore Session
This example shows how to start a restore session to perform restore operations with MongoDB data.
|
$restorepoint = Get-VBRApplicationRestorePoint -MongoDB $session = Start-VEMDBRestoreSession -RestorePoint $restorepoint[0] |
Perform the following steps:
- Run the
Get-VBRApplicationRestorePointcmdlet and provide the MongoDB parameter. Save the result to the$restorepointvariable. - Run the
Start-VEMDBRestoreSessioncmdlet. Set the$restorepointvariable as theRestorePointparameter value and select the necessary restore point. Save the result to the$sessionvariable to be able to use it with other cmdlets.
Related Commands
Get-VBRApplicationRestorePointGet-VEMDBRestoreSessionReturns active restore sessions started to perform restore operations with backed-up MongoDB data.Stop-VEMDBRestoreSessionStops an active restore session started to perform restore operations with backed-up MongoDB data.