Jonas Stawski

Everything .NET and More

Powershell Script for Compressing DB Backups

The following Powershell script compresses all the .BAK files using winrar. 1: cd D:\MSSQL\MSSQL.1\MSSQL\Backup 2: $dirs = get-childitem|where{$_.PSIsContainer} 3: foreach ($dir in $dirs) { 4: cd $d... [More]