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
migrated from webmasters.stackexchange.com Nov 26 '12 at 20:21
This question came from our site for pro webmasters.
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 (
Wrap that to a batch file (
And then you can call that for any number of sites (stored sessions) like:
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 ServerFault.com