Topic "How do I use an exclude mask"

Author Message
Guest

Guest


Hi

Could someone show me how to use an exclude mask when doing a synchorize from the command line?

I tried synchronise local C:\test /local/test -exclude *.exe and it doesn't work..

thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
option exclude <mask>
_________________
Martin Prikryl
A

Guest


prikryl wrote:
option exclude <mask>


this does not work correctly when using multiple options.

Egzample:

I have a listing of files including dirs. I want to download everything except two dirs names 'dist' and 'build' wherever they were in a directory tree. So I set two options:

option exclude */dist/
option exclude */build/

the get command wont exclude the directories when using those two options.

On the other hand at most one of these options work and only when these is the only one. In other words, the combination of multiple exclude options (I gues inclusions too) won't work either way.

Can this be verified or fixed?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You need to separate the masks by semicolon, see an example in help.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License