X-Git-Url: https://git.p6c8.net/psmysqlbackup.git/blobdiff_plain/a463cecd9b193a49f93ac06c44ee3cdfa3d38128..a50738cb249f100bfc5c3970544b2b694de895f4:/psmysqlbackup.ps1 diff --git a/psmysqlbackup.ps1 b/psmysqlbackup.ps1 index 1e23c5e..9b59bd9 100644 --- a/psmysqlbackup.ps1 +++ b/psmysqlbackup.ps1 @@ -20,7 +20,7 @@ $configBackupDir = "backup" $configRotate = 7 $configDbBackup = @() -$configDbExclusions = @("test") +$configDbExclude = @("test") # End of config @@ -64,12 +64,12 @@ function Rotate-Backups($backupDir) { } } -$defaultExclusions = @("information_schema", "performance_schema") +$defaultDbExclude = @("information_schema", "performance_schema") $currDaytime = Get-Date -format "yyyyMMdd-HHmmss" try { - $databases = Get-Databases | Where-Object {!($_ -in $defaultExclusions -or $_ -in $configDbExclusions)} + $databases = Get-Databases | Where-Object {!($_ -in $defaultDbExclude -or $_ -in $configDbExclude)} } catch { Write-Output "Failed to get list of databases"