Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Powershell Script For SQL backups

$
0
0

Hi i want to zip .bak  sql backups and move these backups from one server to another server. and keep it in a folder .Say If the backups have

Source:000.00.21.19  D drive

destination :000.00.21.29 e drive

I should move .bak and trn files of large size only and zip it in the destination and place it in a folder of current date. If the previous day backup is left then that also should be moved zipped and kept in the corresponding folder with the correct date. how can i do this in powershell script and also how can i use a config file for this script. can you please help me.  I am new to powershell scripting 

 

Regards

Ish


Viewing all articles
Browse latest Browse all 8583

Trending Articles