Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

GetPIBackupReport Class

  • Last UpdatedDec 15, 2025
  • 3 minute read
GetPIBackupReport Class

Get a PI Backup Report

The Get-PIBackupReport cmdlet gets a backup report for a PI Data Archive.

The connection parameter specifies which connection to a PI Data Archive to use.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellGetPIBackupReport

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[CmdletAttribute("Get", "PIBackupReport", DefaultParameterSetName = "BackupReportIndex", 
	SupportsShouldProcess = true)]
public class GetPIBackupReport : OSICmdletBase
<CmdletAttribute("Get", "PIBackupReport", DefaultParameterSetName := "BackupReportIndex", 
	SupportsShouldProcess := true)>
Public Class GetPIBackupReport
	Inherits OSICmdletBase

Dim instance As GetPIBackupReport
[CmdletAttribute(L"Get", L"PIBackupReport", DefaultParameterSetName = L"BackupReportIndex", 
	SupportsShouldProcess = true)]
public ref class GetPIBackupReport : public OSICmdletBase
[<CmdletAttribute("Get", "PIBackupReport", DefaultParameterSetName = "BackupReportIndex", 
	SupportsShouldProcess = true)>]
type GetPIBackupReport =  
    class
        inherit OSICmdletBase
    end

The GetPIBackupReport type exposes the following members.

Constructors

  NameDescription
Public method
GetPIBackupReport

Properties

  NameDescription
Public property
Connection

Connection to a PI Data Archive from which to retrieve backup report

Public property
Index

Backup report index to get from the PI Data Archive

Public property
LastReport

Get the most recent backup report from the PI Data Archive

Examples

Get-PIBackupReport -LastReport -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

This example returns the backup report object for the most recent backup from the "PISRV1" PI Data Archive.

Examples

(Get-PIBackupReport -LastReport -Connection $con).Summary

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

This example returns the backup report summary for the most recent backup from the "PISRV1" PI Data Archive.

Examples

Get-PIBackupReport -Index 97 -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

This example returns the backup report object for the backup with index 97 from the "PISRV1" PI Data Archive.

See Also

TitleResults for “How to create a CRG?”Also Available in