If you do that, APPCMD.EXE will create a backup and give it a name based on the date
and time the backup was executed. This name is then displayed on the screen when the backup
completes.
If a backup with that name already exists, an error will be displayed saying that it
cannot create the file since it already exists. If you want to reuse that name, you will need
to delete the backup and run the backup again. Here??™s an example:
APPCMD.EXE delete backup IIS_Backup
APPCMD.EXE add backup IIS_Backup
198 Microsoft Windows Server 2008 Administration
Backups are great to have, but knowing how to restore from backup is just as important.
Luckily, APPCMD.EXE makes this an easy task. You can list all available backups
and restore a specific backup by running the following commands:
APPCMD.EXE list backup
APPCMD.EXE restore backup IIS_Backup
One of the greatest features of IIS 7.0 is the increased visibility into the server??™s state,
such as its worker processes and requests. You can determine the state of your application
pools or even which applications have been started or are currently stopped using
the following commands:
APPCMD.EXE list apppools
APPCMD.EXE list apppools /state:started
APPCMD.EXE list apppools /state:stopped
You can see a list of all your currently running worker processes, the status of a
specific worker process, and even all the worker processes associated with a specific application
pool using the following commands:
APPCMD.
Pages:
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248