From a50738cb249f100bfc5c3970544b2b694de895f4 Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Wed, 29 Dec 2021 13:35:58 +0100 Subject: [PATCH 1/1] Renamed variables $configDbExclusions -> $configDbExclude $defaultExclusions -> $defaultDbExclude --- psmysqlbackup.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" -- 2.34.1