Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wish to FTP my site to multiple servers, I have these servers available in seperate sessions in winSCP. Can I duplicate the changes I make on one to the others

share|improve this question

migrated from Nov 26 '12 at 20:21

This question came from our site for pro webmasters.

up vote 2 down vote accepted

WinSCP supports scripting. You can make a script that uploads (or even better synchronizes) the site. The script can take a parameter with a name of stored session (site) in WinSCP.

The WinSCP script (script.txt) might be like:

option batch abort
option confirm off
open %1%
synchronize remote C:\path_to_website /home/website

Wrap that to a batch file (sync_site.bat) like: /script=script.txt /parameter %1

And then you can call that for any number of sites (stored sessions) like:

sync_site.bat site1
sync_site.bat site2
sync_site.bat site3

Some references:

share|improve this answer

If you are on windows servers you can just use DropBox to mirror the sites from server to server. You may need to install AlwaysUp or fingure out a different way to run Dropbox as a service.

Some ftp clients support scripting. Dont know about WinSCP. With scripting you could essentially write vbs scripts to automate your FTP process and run the updates to multiple hosts.

If you are on windows servers IIS you can also use the WebFarm framework (Free) to have IIS automatically copy content from a master node to all your supscribed nodes. On linux you can do the same by running a shell script that manually checks the "master node" for the changes and updates the clients by downloading all the sites in the directly. This can be done via SSH or SFTP, or a bunch of different setups.

Depending on your setup this may be a good question for

share|improve this answer
Drop box is out of the question due to security. I like your answer, but im going to wait and see if anyone has anything slightly more "ready to go" – Mark W Nov 27 '12 at 10:18
Dropbox is secure. and can use proxies if you want to alter its ports. If you are on a Mac, Panic Transmit has functionality to accomplish your deployments. You can also take a look at Good Sync.… – Frank Nov 27 '12 at 10:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .