- Write-Log "Backing up $d to $databaseBackupFile..." -Path $logFile
- Write-Output "Backing up $d to $databaseBackupFile..."
+ if($configBackupCompress) {
+ Write-Log "Backing up $d to compressed file $databaseBackupFile.zip..." -Path $logFile
+ }
+ else {
+ Write-Log "Backing up $d to $databaseBackupFile..." -Path $logFile
+ }