Preserve App_Data and logs during FTP sync

This commit is contained in:
2026-02-02 17:48:38 +01:00
parent f149d1bc07
commit 82297a92ff

View File

@@ -98,7 +98,7 @@ option confirm off
open ftp://$($FtpUser):$($Password.Replace('`n','').Replace('`r',''))@$FtpHost
lcd $PublishDir
cd $RemoteDir
synchronize remote . -delete -filemask="|web.config"
synchronize remote . -delete -filemask="|web.config;App_Data/;logs/"
exit
"@ | Set-Content -Path $tempScript -Encoding UTF8