Help Center
Choose product document...
Veeam Backup for Microsoft Office 365 2.0
PowerShell Reference

Export-VBOLog

Short Description

Exports log data.

Syntax

This cmdlet provides 3 parameter sets.

  • For the exporting all collected logs.

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

  • For the exporting logs for a specified time period.

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

  • For the exporting logs collected for a specified amount of days.

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

Detailed Description

This cmdlet exports logs of a specified server component.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

ServerComponent

Specifies a server component. This cmdlet will export logs of this server component.

False

Named

false

False

All

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

True

Named

False

False

TargetPath

Specifies a target path for the log export. This cmdlet will export logs to this destination.

True

Named

False

False

From

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

False

Named

False

False

To

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

False

Named

False

False

DayPeriod

Specifies, for how many of the recent days this cmdlet will export the logs. You cannot use All and DayPeriod parameters if this parameter is used.

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Example 1

This example shows how to export all logs collected for a proxy.

You will need to perform the following steps:

  1. Run Get-VBOServerComponents to get the proxy. Save the result to the $proxy variable.
  2. Run Export-VBOLog with the $proxy variable and All parameter to export all of the logs of this proxy to the specified path. Use the TargetPath parameter to specify the export destination.

PS C:\PS> $proxy = Get-VBOServerComponents -Name proxy -ID 06b7354e-518f-4a10-b4c1-98f49d743012

PS C:\PS> Export-VBOLog -ServerComponent $proxy -All  -TargetPath "C:\Veeam\Office365\Logs"

Example 2

This example shows how to export logs of a proxy Veeam Backup for Microsoft Office 365 server component with an ID 06b7354e-518f-4a10-b4c1-98f49d743012 that will be gathered from 29.08.2017 to 15.11.2017.

You will need to perform the following steps:

  1. Run Get-VBOServerComponents with a Name and an ID parameters to get the proxy. Save the result to the $proxy variable.
  2. Run Export-VBOLog with the $proxy variable and From and To parameters to export the logs of this proxy to the specified path. Use TargetPath parameter to specify the export destination.

PS C:\PS> $proxy = Get-VBOServerComponents -Name proxy -ID 06b7354e-518f-4a10-b4c1-98f49d743012

PS C:\PS> Export-VBOLog -ServerComponent $proxy -From <DateTime> -To <DateTime> -TargetPath <String>

Example 3

This example shows how to export logs of a proxy Veeam Backup for Microsoft Office 365 server component with an ID 06b7354e-518f-4a10-b4c1-98f49d743012 that will be gathered for 10 consequently recent days.

You will need to perform the following steps:

  1. Run Get-VBOServerComponents with a Name and an ID parameters to get the proxy. Save the result to the $proxy variable.
  2. Run Export-VBOLog with the $proxy variable and DayPeriod parameter to export the logs of this proxy to the specified path. Use TargetPath parameter to specify the export destination.

PS C:\PS> $proxy = Get-VBOServerComponents -Name proxy -ID 06b7354e-518f-4a10-b4c1-98f49d743012

PS C:\PS> Export-VBOLog -ServerComponent $proxy -DayPeriod -TargetPath <String>

Veeam Large Logo

User Guide

RESTful API Reference

PowerShell Reference