[Webinar] Streamline your web hosting managementRegister Today


WinSCP syncronise script - exclude directories

Posted on 2010-04-05
Medium Priority
Last Modified: 2013-12-09
I am trying to use a winscp script to syncronise a local directory with my web host.

I do NOT want to syncronise two of the folders. One of the folders is called "phpThumb", the other is called "content."

I wrote a script and ran it - but whilst the contents of the directory "phpThumb" didn't get syncronised, the folder "content" DID get copied.

My script is attached - can you tell me where I went wrong?
option confirm off
open ftp://ftp.mydomain.com
cd public_html/mydomain
option exclude "content/"
option exclude "phpThumb/"
synchronize remote c:\xampp\htdocs\mydomain\test staging

Open in new window

Question by:MDWinter
LVL 68

Accepted Solution

woolmilkporc earned 2000 total points
ID: 29900008
there is only one "option exclude ..." allowed at a time, but you can have multiple exclusion masks separated by ";" (semicolon).
So please try using only one "option exclude ..." statement, like
option exclude "content/ ; phpThumb/"
Should work.

Author Closing Comment

ID: 31711122
This worked perfectly - thanks.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With the withdrawal of support for Windows Server 2003 this summer, many clients face the issue of moving away from their 2003 installs. There are a few options out there that many people/companies are selling. But the clients I have, haven't wanted…
Many of the companies I’ve worked with have embraced cloud solutions due to their desire to “get out of the datacenter business.” The ability to achieve better security and availability, and the speed with which they are able to deploy, is far grea…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Suggested Courses

611 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question