windows server 2008 iis7备份与恢复
备份 >AppCmd Add Backup “BackupName”
罗列备份 >AppCmd List Backup
恢复 >AppCmd Restore Backup “BackupName”
§ Works with both “appcmd <object> <verb>” and “appcmd <verb> <object>” command styles.
§ Shows list of objects and verbs available. Builds auto complete list dynamically so that you see only few options.
§ Builds list of current application pools, sites, applications, virtual directories, backups, module, traces, worker processes and shows them as parameter values. Updates this list when “appcmd add/delete” commands are used.
§ Force update option for tool to pick latest configuration data when “appcmd set config” or other scripts/tools are used to add/delete apppools/sites/apps/vdirs.
§ Parses the schema and shows section names in commands which require section names. Custom defined sections are automatically picked.
§ When working with a particular section, shows list of attributes/elements/collections and helps you setting attributes and adding/removing collection elements.
§ Shows attributes, elements, collections which you can set using “appcmd set apppool|site|app|vdir|module” commands.
§ Shows general appcmd parameters. Uses –parameter for general parameters rather than /parameter to show they are different.
§ Shows possible attributes when “appcmd –text:” used.
§ Can execute command and see the output in the same window.
§ Shows examples of commands you are working with which are in “appcmd <verb> <object> /?” help.
§ Supports auto complete and command execution even when piping commands together.
§ Limited support for identifiers. There is a corresponding /parameter option for most of the identifiers. Uses /parameter:value.
§ NEW – Up-down lets you browse recently executed commands.
§ NEW – If you run the application without sufficient privileges, it shows UAC dialog box for you to grant access.
You can use AppcmdUI only on machines which has IIS7 and appcmd.exe installed. Download attached AppcmdUIInstall.zip and run self extracting package AppcmdUIInstall.exe. Extract files (AppcmdUI.exe and AppcmdUI.xml) to a folder on your machine and you are done.
How to Use
Run AppcmdUI.exe as elevated (newest version will demand administrator access if needed only if when you don’t run it from command window). Running from an elevated command prompt is not enough because of UAC settings for applications which are not under windows directory. Start typing appcmd commands in the textbox. You will get list of available options as you go along. Use mouse or down/up arrow keys to select any of available options. Auto complete list is updated every time you type space/comma/colon/dot so that you only see few options which are valid in current context and helps you choose only next option. Snapshot below shows list of available objects in appcmd which are shown on typing “appcmd “.
AppcmdUI uses “appcmd <object> <verb>” format. So you see list of available objects after appcmd. If you type “appcmd <verb>” and then space, you will see list of objects which you can use with the verb you typed. If you want to get list of verbs and not objects when you type “appcmd “, you can set <verb> <object> option in the menu as shown below.
When you have the <verb> <object> option set, you will see the available verbs after appcmd as shown below.
Once you have selected verb and object, you will see list of available options which can be used with them.
When you need the available application pools, sites, applications, virtual directories, backups, traces, worker processes in the command, AppcmdUI shows the values you can use. Next time when you need to start or stop apppools/sites, delete apps/vdirs or inspect traces, you won’t need “appcmd list” command first.