title | author | description | ms.date | ms.assetid | msc.legacyurl | msc.type |
---|---|---|---|---|---|---|
Packaging and Restoring a Web site |
rick-anderson |
This quick guide will show you how to create an package (compressed file) of a Web site, and then restore the site from the package. Prerequisites This guide... |
03/23/2008 |
7ba4c586-84ea-4cf6-91bd-f6ff2e73757e |
/learn/publish/using-web-deploy/packaging-and-restoring-a-web-site |
authoredcontent |
by Faith A
This quick guide will show you how to create an package (compressed file) of a Web site, and then restore the site from the package.
This guide requires the following prerequisites:
- .NET Framework 2.0 SP1 or greater
- Web Deployment Tool 1.1
Note: If you have not already installed the Web Deployment Tool, see Installing Web Deploy.
-
To create a package, run the following command:
[!code-consoleMain]
-
To restore the package, run the following command:
[!code-consoleMain]
-
To create a package, run the following command:
[!code-consoleMain]
-
To restore the package, run the following command:
[!code-consoleMain]
If you need to package a second directory outside the scope of your Web site, or you want to include other sites or objects, you have two options:
- Package each of them separately
- Create a manifest file to package multiple paths (see Using Custom Manifests)
You have now created a package of a Web site, and restored the site from the package. This is useful if you need to revert to a prior version of the site, or if files have become corrupt or missing from the site's content directory.