This is an archive version of the document. To get the most up-to-date information, see the current version.

Export-VBOLog

Short Description

Exports the Veeam Backup for Microsoft 365 server log files.

Syntax

This cmdlet provides parameter sets that allow you to:

  • Export all collected logs.

Export-VBOLog -ServerComponent <VBOServerComponent[]> -All  -TargetPath <String>  [<CommonParameters>]

  • Export logs for the specified time period.

Export-VBOLog -ServerComponent <VBOServerComponent[]> -TargetPath <String> [-From <datetime>] [-To <datetime>] [<CommonParameters>]

  • Export logs collected for the specified number of days.

Export-VBOLog -ServerComponent <VBOServerComponent[]> -DayPeriod <Int32> -TargetPath <String>  [<CommonParameters>]

Detailed Description

This cmdlet exports log files collected for the specified server components.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Accept Wildcard Characters

ServerComponent

Specifies an array of the Veeam Backup for Microsoft 365 server components. The cmdlet will export logs of the specified server component.

Accepts the VBOServerComponent[] object.

To get this object, run the Get-VBOServerComponents cmdlet.

True

Named

False

False

All

Defines that this cmdlet will export logs for all time. You cannot use the From, To and DayPeriod parameters if this parameter is used.

SwitchParameter

True

Named

False

False

TargetPath

Specifies a target path for the log export. The cmdlet will export log files to this location.

String

True

Named

False

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 All, From and To parameters if this parameter is used.

Int32

True

Named

False

False

From

Specifies date and time, starting from which this cmdlet will export the logs. If this parameter is used, you must use the To parameter and you cannot use the All and DayPeriod parameters. You must enter date and time in a DateTime format.

DateTime

False

Named

False

False

To

Specifies the date and time, until which this cmdlet will export the logs. If this parameter is used, you must use the From parameter and you cannot use the All and DayPeriod parameters. You must enter date and time in a DateTime format.

DateTime

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

None.

Examples

Export-VBOLogExample 1. Exporting All Logs Collected for Backup Proxy Server

Export-VBOLogExample 2. Exporting Logs for Backup Proxy Server for Specific Period

Related Commands

Get-VBOServerComponents