Skip to content

Commit 4735be7

Browse files
committed
add more tables to backup
1 parent f86543a commit 4735be7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Modules/CIPPCore/Public/New-CIPPBackup.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,29 @@ function New-CIPPBackup {
1414
'CIPP' {
1515
try {
1616
$BackupTables = @(
17+
'AppPermissions'
18+
'AccessRoleGroups'
19+
'ApiClients'
20+
'CustomData'
21+
'CustomRoles'
1722
'Config'
23+
'CommunityRepos'
1824
'Domains'
25+
'GraphPresets'
26+
'GDAPRoles'
27+
'GDAPRoleTemplates'
1928
'ExcludedLicenses'
2029
'templates'
2130
'standards'
2231
'SchedulerConfig'
2332
'Extensions'
2433
'WebhookRules'
2534
'ScheduledTasks'
35+
'TenantProperties'
2636
)
2737
$CSVfile = foreach ($CSVTable in $BackupTables) {
2838
$Table = Get-CippTable -tablename $CSVTable
29-
Get-AzDataTableEntity @Table | Select-Object * -ExcludeProperty DomainAnalyser, table, Timestamp, ETag | Select-Object *, @{l = 'table'; e = { $CSVTable } }
39+
Get-AzDataTableEntity @Table | Select-Object * -ExcludeProperty DomainAnalyser, table, Timestamp, ETag, Results | Select-Object *, @{l = 'table'; e = { $CSVTable } }
3040
}
3141
$RowKey = 'CIPPBackup' + '_' + (Get-Date).ToString('yyyy-MM-dd-HHmm')
3242
$CSVfile

0 commit comments

Comments
 (0)