Another technique for backing up and restoring information in a site is to save that site to a site template and then use that template to create a new site. This technique is convenient because it allows you to restore a site to a new location. CAUTION The downside to backing up sites using templates is that there is a hard limit of 10MB for a site template file. If your site is larger than 10MB, you will not be able to use this approach. Backing Up a Site to a TemplateTo back up an existing site to a template so that it can be restored elsewhere, perform the following steps:
Restoring Site TemplatesAfter you have saved the site as a template, you can use that same template to restore the site to a different location. In addition, you can transfer the STP file to another server running Windows SharePoint Services and restore it to that server. To import a site template into the template gallery of a SharePoint server, run the following command from the command prompt of the SharePoint server:
Remember to replace the title and description with one pertinent to the site itself. After performing this step, the IIS services need to be restarted, which can be done by typing iisreset at the command prompt. CAUTION Running iisreset temporarily cuts off access to the SharePoint sites. After the template is installed on the server, it can be viewed by typing the following: stsadm o enumtemplates If the template needs to be modified, it must be deleted first, via the following syntax: Stsadm o deletetemplate title "Title of the Template" Once deleted, IIS must be restarted again, and the template can be imported again via the previous steps. This process is also useful when creating default site templates for a portal. |