Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

It does not work like that.
First, there should be no slash after file mask (as opposite to directory mask):
https://winscp.net/eng/docs/file_mask#directory
But even then, WinSCP does not even get to the file.php file, because it does not get to the folderd folder, as it is implicitly excluded by your mask. You have to include folderd/.
goalie_joe

Thanks Martin, using doublequotes my folder-sync is working, THANKS!

Whats unfortunatelly still is not working, is syncing single files in subfolders:
"synchronize local -filemask=""foldera/; folderb/; folderc/; folderd/subfolder/file.php/"" C:\Users\local\Files /server/files"


foldera/, folderb/, folderc/ are getting synced correctly now, but for file.php in folderd just nothing happens.

Best
Johanens
martin

Re: Schedule synchronization through Task Scheduler - using Filemask for serveral files

See https://winscp.net/eng/docs/commandline#syntax
So it should be:
"synchronize local -filemask=""foldera/; folderb/; folderc/"" C:\Users\local\Files /server/files"
goalie_joe

Schedule synchronization through Task Scheduler - using Filemask for serveral files

I want to Schedule a synchronization from my webserver to local computer through Task Scheduler, using this documentation:
https://winscp.net/eng/docs/guide_schedule
Sync all files from web to local works fine:
/log=C:\Users\local\pc\protokoll\WinSCP.log /command "open ftp://user:password@example.com/" "synchronize local C:\Users\local\Files /server/files" "exit"

Sync only one folder using filemask works fine also:
/log=C:\Users\local\pc\protokoll\WinSCP.log /command "open ftp://user:password@example.com/" "synchronize local -filemask="folder/" C:\Users\local\Files /server/files" "exit"

But as soon as I try to add more folders or files to filemask, the sync is not working anymore:
/log=C:\Users\local\pc\protokoll\WinSCP.log /command "open ftp://user:password@example.com/" "synchronize local -filemask="foldera/; folderb/; folderc/" C:\Users\local\Files /server/files" "exit"

What's wrong with my filesmask?