Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

rupertito

Re: Option -filemask and -delete

Understood, that's clear. Thanks, Martin.
martin

Re: Option -filemask and -delete

You can run synchronize twice. Once with -filemask and once with -delete and Interface\SynchronizeParams=4 (= Existing files only – to prevent uploading files you do not want to upload). You cannot change SynchronizeParams in-process though. So you need to run even WinSCP twice for that.
https://winscp.net/eng/docs/rawconfig#interface_synchronizeparams
rupertito

Option -filemask and -delete

Hello

I'm using a script to sync that contains
synchronize remote  -preservetime  -delete  -mirror  -filemask="*.txt,*.log"  %dirLocal%

I see that -filemask also applies to the -delete option, so if I have, for example, an .exe on the destination, it won't delete it (I assume it doesn't exist on the source). Is there a way to make -filemask not affect -delete?

Thanks