Solved

save website configuration to file from command line

Posted on 2007-04-07
9
220 Views
Last Modified: 2010-04-20
I'm looking for a way to save a website configuration to file from command line. Or a way to import a specific site from the metabase as a different name. I need a way to backup one site from IIS and restore it in the same IIS as a different name.
0
Comment
Question by:josgan
  • 4
  • 4
9 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 18871915
you got a M$ system which is designed to work without input devices, oops, at least without a keyboard ... ;-) IIRC there is no way to export the configuration except using regdump or something like that.
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 18872926
What version of IIS are you running?

Dave Dietz
0
 

Author Comment

by:josgan
ID: 18873070
IIS 6
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 18873098
IISCNFG.VBS can do what you're looking for.

There is good documentation for it if you search in the IIS help files, or you can try running 'iiscnfg.vbs /export /?' from a command line for usage parameters.

You would then use the /import flag to take the saved data and red it back into the Metabase and you can specify a different destination than the path that was saved from.

Dave Dietz
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:josgan
ID: 18875999
From all the docs i'm reading it says that yes it is possible to do just parts of the metabase, but it doesn't show how.
0
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 500 total points
ID: 18877200
If you want to back up just the default web site you would do the following:

iiscnfg.vbs /export /f site.xml /sp /lm/w3svc/1 /children

To import this as a site with identifier '2' you would use the following:

iiscnfg.vbs /import /f site.xml /sp /lm/w3svc/1 /dp /lm/w3svc/2 /children

Dave Dietz
0
 

Author Comment

by:josgan
ID: 18877296
do the sites go in that order inside the manager? The site listed first is 1, the site listed second is number 2 and so on?
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 18877462
I believe the sites are listed in order of creation (the order they appear in the Metabase).

The sites are appended to the Metabase and are not arranged in any special order.

You can simply click on the 'Web Sites' entry in the IIS MMC and look at the Identifier column to see which identifier to use for exporting and which ones *not* to use for importing.....  :-)

Dave Dietz
0
 

Author Comment

by:josgan
ID: 18877557
thanks loads. I was looking in the metabase backups for the ident. Yours' is a ton more explainable.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now