From: Patrick Canterino Date: Wed, 29 Dec 2021 12:35:58 +0000 (+0100) Subject: Renamed variables X-Git-Tag: 0.1~6 X-Git-Url: https://git.p6c8.net/psmysqlbackup.git/commitdiff_plain/a50738cb249f100bfc5c3970544b2b694de895f4?hp=a463cecd9b193a49f93ac06c44ee3cdfa3d38128 Renamed variables $configDbExclusions -> $configDbExclude $defaultExclusions -> $defaultDbExclude --- 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"