Schedule synchronization through Task Scheduler - using Filemask for serveral files

Advertisement

goalie_joe
Joined:
Posts:
2

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?

Reply with quote

Advertisement

goalie_joe
Joined:
Posts:
2

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

Reply with quote

Advertisement

You can post new topics in this forum