Save-VBREntraIDLogsBackupFLRItem
Short Description
Restores files and folders backed up by a log backup job that protects Microsoft Entra ID audit and sign-in logs.
Product Edition: Enterprise Plus, Veeam Universal License
Syntax
|
Save-VBREntraIDLogsBackupFLRItem -Item <VBRUnstructuredBackupFLRItem[]> -Server <VBRUnstructuredServer> -Path <String> [-RunAsync] [-RetrievalSettings <VBRUnstructuredBackupColdStorageRetrievalSettings>] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet restores and saves files and folders backed up by a log backup job.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Force |
Defines that the cmdlet will modify settings of managed file shares without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
Item |
Specifies an array of Entra ID log files and folders that you want to restore.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Path |
Specifies the path to the folder where you want to restore log files or folders. |
|
True |
Named |
False |
|
RetrievalSettings |
Specifies the retrieval policy settings. The cmdlet will use these settings to retrieve data from archive repositories.
Accepts the |
|
False |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Server |
Specifies the file share to which you want to restore log files or folders.
Accepts the |
|
True |
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 array of VBRUnstructuredBackupFLRItem objects that contain settings of restored log files and folders.
Examples
Restoring Log Files
This example shows how to restore the log files whose names start with 2024-11-01T10. The files are restored to the \\WinSrv\Reports file share to the \\WinSrv\Reports\Restored folder.
|
$tenant = Get-VBREntraIdTenant -AzureTenantId "xxxxx" $logBackups = Get-VBREntraIDLogsBackup $logRestoreSession = Start-VBREntraIDLogsBackupFLRSession -Backup $logBackups[0] -Tenant $tenant $fileshare = Get-VBRUnstructuredServer -Name "\\WinSrv\Reports" $files = Get-VBREntraIDLogsBackupFLRItem -Session $logRestoreSession -Name "2024-11-01T10*" -Recurse Save-VBREntraIDLogsBackupFLRItem -Server $fileshare -Item $files -Path "\\WinSrv\Reports\Restored" |
Perform the following steps:
- Run the
Get-VBREntraIdTenantReturns Microsoft Entra ID tenants added to the backup infrastructure. cmdlet. Specify theAzureTenantIdparameter value. Save the result to the$tenantvariable. - Run the
Get-VBREntraIDLogsBackupReturns backups of Microsoft Entra ID logs. cmdlet.The
Get-VBREntraIDLogsBackupcmdlet will return an array of backups. Mind the ordinal number of the necessary backup, for arrays it starts with 0. In our example, it is the first backup in the array. - Run the
Start-VBREntraIDLogsBackupFLRSessionStarts a restore session to explore log files and folders that a log backup contains. cmdlet. Set the$logBackups[0]variable as theBackupparameter value. Set the$tenantvariable as theTenantparameter value. Save the result to the$logRestoreSessionvariable. - Run the
Get-VBRUnstructuredServerReturns unstructured data sources added to the inventory. cmdlet. Specify theNameparameter value. Save the result to the$filesharevariable. - Run the
Get-VBREntraIDLogsBackupFLRItemReturns backed-up objects created by a log backup job. cmdlet. Specify the following settings:- Set the
$logRestoreSessionvariable as theSessionparameter value. - Specify the
Nameparameter value. - Provide the
Recurseparameter value. - Save the result to the
$filesvariable.
- Set the
- Run the
Save-VBREntraIDLogsBackupFLRItemcmdlet. Specify the following settings:- Set the
$filesvariable as theItemparameter value. - Set the
$filesharevariable as theServerparameter value. - Specify the
Pathparameter value.
- Set the
Related Commands
Get-VBREntraIdTenantReturns Microsoft Entra ID tenants added to the backup infrastructure.Get-VBREntraIDLogsBackupReturns backups of Microsoft Entra ID logs.Start-VBREntraIDLogsBackupFLRSessionStarts a restore session to explore log files and folders that a log backup contains.Get-VBREntraIDLogsBackupFLRItemReturns backed-up objects created by a log backup job.