Get history of runs for a backup job.
Get-BackupJobHistory [[-Device] <Object>] [[-Client] <Object>] [-Job] <Object> [[-StartTimeBegin] <DateTime>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]Retrieves run history for a backup job
Get-BackupJobHistory -Device 12345 -Client 67890 -Job 54321$job | Get-BackupJobHistory$job | Get-BackupJobHistory -StartTimeBegin (Get-Date).AddDays(-30)This example returns history only for jobs starting less than 30 days ago
$job | Get-BackupJobHistory -StartTimeBegin '2024-08-12'This example returns history for jobs starting after August 12, 2024 00:00
Device to retrieve information for. Accepts device ID or Device Object. If specifying a device object, function will also use Client ID if available. Not required if present on Job object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseRelevant Client ID or Object. Not required if Client ID is avilable on Device or Job object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseA specific Job to retrieve information for.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThe oldest date / time start time you want to return history for.
Type: DateTime
Parameter Sets: (All)
Aliases: starttime_begin
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
[PSCustomObject] Job objects
[PSCustomObjects] Job history objects
As of v0.4.0 this function utilizes pagination to ensure all results are returned. History is requested in sets of 1500.