Post a reply :: Support Forum

Username
Subject
Message body
Options

Add an Attachment

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


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

Topic review

Author Message
xmrkite
Post
OK, I got it

Here is what worked (since I could not find this anywhere online)
option exclude *.bak;*.sql;test1*

This takes out all .bak and .sql files from the backup as well as the test1 folder.

-Thanks
martin
There's no -filemask switch in 4.x. Please upgrade to 5.0.8 RC or use "option exclude <mask>" with 4.x
https://winscp.net/eng/docs/scriptcommand_get
https://winscp.net/eng/docs/scriptcommand_option
xmrkite
Hello, I just can't get masks to work from my script.

Here is my options file below:

option batch abort
option confirm off
open test
synchronize remote -filemask="|*.bak; *.zip; */abc/" "C:\Documents and Settings\test\Desktop\test" "/" -delete
exit


So i want to transfer everything except the .bak, .zip files and skip the abc folder.
What am I doing wrong? This won't even complete with that in there. I am using winscp 4.x

Search

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