Topic "need help on excluding a specific file name during sync"

Author Message
Arjun
[View user's profile]

Joined: 2012-04-05
Posts: 10
Location: Sri Lanka
hi,

i need to exclude *_LTR_* and *_TOB_* from my sync list and not able to do this,

tried these but none helped (both style)

option exclude "[A-Z]_LTR_[A-Z].gz"
option exclude "?_TOB_?"


pls help
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
The current syntax in the latest version of WinSCP is:
synchronize -filemask="|*_LTR_*; *_TOB_*" ...
Though the "option exclude" should still work, althought it is deprecated.
Arjun
[View user's profile]

Joined: 2012-04-05
Posts: 10
Location: Sri Lanka
sorry, couldnt catch, kindly could you pls give an example

my script looks like this at the excluding area,
i tried both the "?" and "*" to check but both failing to [b]exclude [/b]

option transfer binary
option exclude ".removed_logs"
option exclude "?_TOB_?"
option exclude "?_S17-?"
option exclude "?_TS_?"
option exclude "*_LTR_*"
option exclude "*_TOB_*"
synchronize local E:\Logs\ /Incoming

an example would help i guess ..

[quote="prikryl"]The current syntax in the latest version of WinSCP is:
synchronize -filmask="|*_LTR_*; *_TOB_*" ...
Though the "option exclude" should still work, althought it is deprecated.[/quote]
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
First, I have edited my response, it should be -filemask=.

Even if you insist on using deprecated "option exclude", you need to combine all masks into one. What you are doing that that every call to option exclude overwrite the previous value. They do not add-up. See https://winscp.net/eng/docs/scriptcommand_option
E.g.
option exclude ".removed_logs; *_TOB_*; *_S17-*"
Arjun
[View user's profile]

Joined: 2012-04-05
Posts: 10
Location: Sri Lanka
many many thanks Laughing this is sorted n working
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