Preserve App_Data and logs during FTP sync
This commit is contained in:
@@ -98,7 +98,7 @@ option confirm off
|
|||||||
open ftp://$($FtpUser):$($Password.Replace('`n','').Replace('`r',''))@$FtpHost
|
open ftp://$($FtpUser):$($Password.Replace('`n','').Replace('`r',''))@$FtpHost
|
||||||
lcd $PublishDir
|
lcd $PublishDir
|
||||||
cd $RemoteDir
|
cd $RemoteDir
|
||||||
synchronize remote . -delete -filemask="|web.config"
|
synchronize remote . -delete -filemask="|web.config;App_Data/;logs/"
|
||||||
exit
|
exit
|
||||||
"@ | Set-Content -Path $tempScript -Encoding UTF8
|
"@ | Set-Content -Path $tempScript -Encoding UTF8
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user