tag:help.appveyor.com,2012-11-13:/discussions/questions/49110-deploy-in-ftps-modeAppVeyor: Discussion 2020-09-12T21:03:02Ztag:help.appveyor.com,2012-11-13:Comment/484598682020-07-13T18:35:42Z2020-07-13T18:35:42ZDeploy in ftps mode<div><p>Hello,</p>
<p>Current FTPS implementation in AppVeyor doesn't support old files removal.</p>
<p>You can use <a href="https://www.appveyor.com/docs/deployment/agent/">AppVeyor Deployment Agent</a> which supports full sync.</p>
<p>If FTPS is the only option to deploy to that server then you can use WinSCP which can do full "sync" of local/remote folders and much more.</p>
<p>The general algorithm for using WinSCP in a build script:</p>
<pre>
<code>deploy_script:
- cmd: |
choco install -y winscp
echo open ftpes://%FTP_USER%:%FTP_PSW%@<your-ftp-server>/ > ftp.txt
echo put <somefile> / >> ftp.txt
echo exit >> ftp.txt
"C:\Program Files (x86)\WinSCP\winscp.com" /script=ftp.txt</code>
</pre>
<p>where FTP_USER and FTP_PSW are secure environment variables defined on either project settings UI or in appveyor.yml.</p></div>Feodor Fitsner