Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 webmasters.stackexchange.com Nov 26 '12 at 20:21

This question came from our site for pro webmasters.

add comment

2 Answers 2

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
exit

Wrap that to a batch file (sync_site.bat) like:

winscp.com /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:
http://winscp.net/eng/docs/guide_automation
http://winscp.net/eng/docs/scripting#syntax

share|improve this answer
add comment

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

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. goodsync.com/how-it-works/sync-applications/… –  Frank Nov 27 '12 at 10:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.