scripting - How to backup and restore IIS configuration from script -
I am writing a script that sets many different applications in Windows (mainly for SVN and open source servers) For http, DNS, mail, FTP and DB). This script is intended for new developers to execute in new / clean Windows workstations, it automatically sets to set each output to create a product after executing it, everything runs locally And the developer can start working immediately.
This not only helps new developers, but whenever all existing developers change the whole system, everything is replicated locally.
One thing that I still can not do, is making a backup of an IIS server that is running a web app (in this prod server) and it is automatically launched on a new developer machine Is restoring from so that it does not need to install / configure IIS locally.
I have read about using APCMDXA for backup and restore, but it only works for that machine (it uses encryption keys and changes those keys Between computers).
Is there a way to take everything IIS related to a server, and restore it to another server, without user intervention and to restore IIS to run basically? / P>
Thank you in advance!
Francisco
Just put it here Tanga so that anyone can understand it Why not answer it. A website has a massive variable that prevents any easy methods to copy all of its configuration through one or a few CMDlets.
To get started, though you want to be very familiar with the applicationHost.config file and how you can use it using properties. One way to get acquainted with the script against web configuration properties is to use the configuration editor in IIS. Whenever you make changes to the configuration editor, before making changes, there is a few nifty links on the generated script, which will contain a powerful tab that will allow you to use appropriate elements for configuration elements in the application to collect / set commands. can do . Config file
I have almost made something like looking for OP and it spreads 4 modules (20,000 lines of code) and has a SQL backend that contains all the configuration elements.
When a website has everything from the built-in DLL that needs registered, ISPCGI restrictions and ISP filters, then the account that is linked to AppPool can be added to some local groups on the server. , So it is necessary to secure binding that you can see that the certificate being loaded on the server is not a simple undertaking (and they are a small part of the variables, which is a web The site can be)
However, there is a large part of CMDlets that Microsoft offers outside the box which can help you to develop something like this in. I know it's four years old, but hopefully anyone who stumbles on it will find the above useful.
Comments
Post a Comment