Skip to content

Instantly share code, notes, and snippets.

@wayne-o
Created October 28, 2013 10:31
Show Gist options
  • Save wayne-o/7194622 to your computer and use it in GitHub Desktop.
Save wayne-o/7194622 to your computer and use it in GitHub Desktop.
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