"Create" is no approved verb in PowerShell
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) {
}
try {
- Create-Backup $d $databaseBackupFile
+ Invoke-DatabaseBackup $d $databaseBackupFile
Invoke-FileRotation -Dir $databaseBackupDir -MaxFiles $configBackupRotate -Pattern $patternBackupFile -LogFile $logFile
}
catch {