X-Git-Url: https://git.p6c8.net/psmysqlbackup.git/blobdiff_plain/346c2b052b607134793aefb557f18949ade0daf2..HEAD:/psmysqlbackup.ps1 diff --git a/psmysqlbackup.ps1 b/psmysqlbackup.ps1 index 6177abd..b728bb0 100644 --- a/psmysqlbackup.ps1 +++ b/psmysqlbackup.ps1 @@ -173,7 +173,7 @@ function Get-Databases() { return $databases } -function Create-Backup([String]$database, [String]$target) { +function Invoke-DatabaseBackup([String]$database, [String]$target) { & $configMysqldumpCli --host=$configMysqlHost --port=$configMysqlPort --user=$configMysqlUser --password=$configMysqlPassword --single-transaction --result-file=$target $database if($LastExitCode -ne 0) { @@ -299,7 +299,7 @@ foreach($d in $databasesToBackup) { } try { - Create-Backup $d $databaseBackupFile + Invoke-DatabaseBackup $d $databaseBackupFile Invoke-FileRotation -Dir $databaseBackupDir -MaxFiles $configBackupRotate -Pattern $patternBackupFile -LogFile $logFile } catch {