Exclude web.config from FTP sync to preserve server settings
This commit is contained in:
@@ -12,7 +12,7 @@ $WinScpPath = "C:\\Users\\frank\\AppData\\Local\\Programs\\WinSCP\\WinSCP.com
|
|||||||
$RecycleAppPool = $true
|
$RecycleAppPool = $true
|
||||||
$AppPoolName = "xTr1m.com(domain)(4.0)(pool)"
|
$AppPoolName = "xTr1m.com(domain)(4.0)(pool)"
|
||||||
$WinRmComputer = "xTr1m.com"
|
$WinRmComputer = "xTr1m.com"
|
||||||
$WinRmCredentialUser = "win-eisvr3h3qra\\Administrator"
|
$WinRmCredentialUser = "Administrator"
|
||||||
$WinRmCredentialPass = $null # prompted at runtime
|
$WinRmCredentialPass = $null # prompted at runtime
|
||||||
$UseWinRmHttps = $true # set false if using HTTP + TrustedHosts
|
$UseWinRmHttps = $true # set false if using HTTP + TrustedHosts
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ option confirm off
|
|||||||
open ftp://$($FtpUser):$($FtpPassword.Replace('`n','').Replace('`r',''))@$FtpHost
|
open ftp://$($FtpUser):$($FtpPassword.Replace('`n','').Replace('`r',''))@$FtpHost
|
||||||
lcd $PublishDir
|
lcd $PublishDir
|
||||||
cd $RemoteDir
|
cd $RemoteDir
|
||||||
synchronize remote . -delete
|
synchronize remote . -delete -filemask="|web.config"
|
||||||
exit
|
exit
|
||||||
"@ | Set-Content -Path $tempScript -Encoding UTF8
|
"@ | Set-Content -Path $tempScript -Encoding UTF8
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user