X-Git-Url: https://git.p6c8.net/psmysqlbackup.git/blobdiff_plain/ac3854af1a50a24ad787fca5b3c250d7f8563e78..1709a66946731ebe8f373f398af5749c90fb4b64:/psmysqlbackup.ps1 diff --git a/psmysqlbackup.ps1 b/psmysqlbackup.ps1 index 9292ed4..d11f52e 100644 --- a/psmysqlbackup.ps1 +++ b/psmysqlbackup.ps1 @@ -98,11 +98,10 @@ foreach($d in $databasesToBackup) { try { Create-Backup $d $databaseBackupFile + Rotate-Backups $databaseBackupDir } catch { Write-Output "Could not backup database $d to $databaseBackupFile" Write-Output $_ } - - Rotate-Backups $databaseBackupDir } \ No newline at end of file