Skip to content

Commit fd89089

Browse files
committed
fix large backups
1 parent 5ec4ad6 commit fd89089

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecListBackup.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Function Invoke-ExecListBackup {
2525
}
2626

2727
$Result = Get-CIPPBackup @CippBackupParams
28+
Write-Host ($Result | ConvertTo-Json)
2829
if ($request.Query.NameOnly) {
2930
$Result = $Result | Select-Object @{Name = 'BackupName'; exp = { $_.RowKey } }, Timestamp | Sort-Object Timestamp -Descending
3031
}

Modules/CIPPCore/Public/Get-CIPPAzDatatableEntity.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ function Get-CIPPAzDataTableEntity {
5959
}
6060
$fullEntity | Add-Member -MemberType NoteProperty -Name 'PartitionKey' -Value $parts[0].PartitionKey -Force
6161
$fullEntity | Add-Member -MemberType NoteProperty -Name 'RowKey' -Value $entityId -Force
62+
$fullEntity | Add-Member -MemberType NoteProperty -Name 'Timestamp' -Value $parts[0].Timestamp -Force
6263
$finalResults = $finalResults + @($fullEntity)
6364
} else {
6465
$finalResults = $finalResults + @($entityData.Entity)

Modules/CIPPCore/Public/Get-CIPPBackup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ function Get-CIPPBackup {
1616
$Conditions.Add("TenantFilter eq '$($TenantFilter)'")
1717
}
1818
if ($Name) {
19-
$Conditions.Add("RowKey eq '$($Name)'")
19+
$Conditions.Add("RowKey eq '$($Name)' or OriginalEntityId eq '$($Name)'")
2020
}
2121

2222
if ($NameOnly.IsPresent) {
23-
$Table.Property = @('PartitionKey', 'RowKey', 'Timestamp')
23+
$Table.Property = @('PartitionKey', 'RowKey', 'Timestamp', 'OriginalEntityId')
2424
}
2525

2626
$Filter = $Conditions -join ' and '

0 commit comments

Comments
 (0)