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

martin

Re: problem excluding folders with synchronise and filemask

There should be no problem with spaces in filenames in the file mask.
If you need further help, we need your new script and corresponding log file.
Guest

Re: problem excluding folders with synchronise and filemask

Hi
Work well
But I have problem excluding folders "with space on the name"

Tha syntax change with this variant?

Very thanks
martin

Re: problem excluding folders with synchronise and filemask

If you want to exclude only specific instance of 1 folder, use a full path to the folder:
-filemask="|E:\condivisa\ftp\locale\1\"

or a relative path to it:
-filemask="|.\1\"

See https://winscp.net/eng/docs/file_mask#path
gabrigabri

Problem excluding folders with synchronise and filemask

Hello everyone
I should exclude 3 folders and all their subfolders and files
from a copy with sync

I was thinking of using the -filemask option but I can't find documentation for using it

This is the code of my script:
option confirm off
option batch continue
option exclude  "E:\condivisa\ftp\locale\1\*;  E:\condivisa\ftp\locale\2\*"
open ftp://utente:1@127.0.0.1:21
synchronize remote  -mirror -delete -filemask="|1/"  E:\condivisa\ftp\locale\ /e/condivisa/ftp/remota/
exit

the folder to exclude would only be:
E:\condivisa\ftp\locale\1\

but I noticed that it also excludes folders with the same name in other locations:
E:\condivisa\ftp\locale\2\1

Can someone help me?
Thanks in advance