Created
October 28, 2013 10:31
-
-
Save wayne-o/7194622 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iisreset /stop | |
#release path | |
$raven = "D:\PathToDataDirs\Deployment" | |
#set the paths for the dbs: | |
$databases = "D:\PathToDataDirs\Beta\Act\", "D:\PathToDataDirs\Beta\Conversation\","D:\PathToDataDirs\Beta\Location\","D:\PathToDataDirs\Beta\Event\" | |
foreach($db in $databases){ | |
Remove-Item $db\* -force -recurse -erroraction silentlycontinue -exclude *.config,Data | |
cp $raven\* $db -force -recurse -erroraction silentlycontinue | |
} | |
iisreset /start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment