Export-VBOJobLog
Short Description
Exports the Veeam Backup for Microsoft 365 job log files.
Syntax
This cmdlet provides the following parameter sets:
-
ExportAllParameterSetExport-VBOJobLog [-JobIds] <Guid[]> [-All] -TargetPath <String> [<CommonParameters>]
-
ExportDatePeriodParameterSetExport-VBOJobLog [-JobIds] <Guid[]> [-From <DateTime>] [-To <DateTime>] -TargetPath <String> [<CommonParameters>]
-
ExportDaysParameterSetExport-VBOJobLog [-JobIds] <Guid[]> -DayPeriod <Int32> -TargetPath <String> [<CommonParameters>]
Detailed Description
This cmdlet exports log files collected for the specified Veeam Backup for Microsoft 365 jobs.
Note |
|
If a job or a Microsoft organization is renamed, logs created before the renaming are not exported. |
To export log files collected for the Veeam Backup for Microsoft 365 server components, run the Export-VBOLogExports the Veeam Backup for Microsoft 365 server log files. cmdlet.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
All |
Defines that the cmdlet will export logs for all time. You cannot use the Default: False |
|
True |
Named |
False |
|
DayPeriod |
Specifies the number of last N days. The cmdlet will export logs for these days. Permitted values: 1–999.
Note: You cannot use the |
|
True |
Named |
False |
|
From |
Specifies date and time, starting from which this cmdlet will export the logs. If this parameter is used, you must use the |
|
False |
Named |
False |
|
JobIds |
Specifies an array of job IDs. The cmdlet will export logs for jobs with the specified IDs. |
|
True |
0 |
False |
|
TargetPath |
Specifies a target path for the log export. The cmdlet will export log files to this location. |
|
True |
Named |
False |
|
To |
Specifies the date and time, until which this cmdlet will export the logs. If this parameter is used, you must use the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Examples
Example 1: Exporting All Logs Collected for Veeam Backup for Microsoft 365 Job
|
This example shows how to export all logs collected for a job. The cmdlet will export logs with the following settings:
Perform the following steps:
|
Example 2: Exporting Job Logs for Specific Period
|
This example shows how to export logs for a job for a specific period. The cmdlet will export logs with the following settings:
Perform the following steps:
|
Related Commands
Get-VBOJobSessionReturns backup and backup copy job sessions.