2

If I have 5 servers, and each server has the exact same file structure, is there a ftp program that can replicate the same operation on all the servers?

e.g.:

/wwwroot/site1/

Now if I want to copy a file logo.jpg to the root of the folder:

/wwwroot/site1/logo.jpg

Is there a ftp program (maybe filezilla?) that I can setup so that I just copy the file over and then it performs the same operation on the other servers automatically?

1 Answers1

1

user1361315, if you're using Windows 7 then you can use the built in FTP.exe client, which supports:

-s:filename.txt

So just put lines like:

open ftp.siteone.com
ftpuser
myPassW0rd
cd /wwwroot/site1/
bin
put logo.jpg
quit

In filename.txt and use:

ftp -s:filename.txt

You could easily create a batch file with some stub files which used:

copy /A siteone.txt+newcommand.txt filename.txt
 copy /A sitetwo.txt+newcommand.txt filename.txt

To join a "header" file for each site (different host, password, etc) with a common "newcommand" that did the same work for each of them and then runs FTP 5 times.

PSaul
  • 111