josgan
asked on
save website configuration to file from command line
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.
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.
What version of IIS are you running?
Dave Dietz
Dave Dietz
ASKER
IIS 6
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
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
ASKER
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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
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
ASKER
thanks loads. I was looking in the metabase backups for the ident. Yours' is a ton more explainable.