Reading Time: 1 minute

Types of Backup and Restore

1. Site Collection Backup and Restore

This is only for Site Collection, using Backup and Restore not possible to backup SubSites.

Syntax:

Open Command Prompt in Sharepoint installed Server

cd C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN

Backup

stsadm.exe -o backup -url http://sitecollection -filename G:backupfilesbackupirec.dat -overwrite

Restore

stsadm.exe -o restore -url http://UATSitecollection -filename G:backupfilesbackupirec.dat  -overwrite

2. Sub Site Export and import

Open Command Prompt in Sharepoint installed Server

cd C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN

Export

For Export : stsadm -o export -url http://SiteCollection/Subsite  -filename “G:ExportfilesIGsite.cmp” -overwrite

Import

stsadm -o import -url http://UATSiteCollection/newsubsite -filename “G:ExportfilesIGsite.cmp”

DisAvantages:

If in you Subsite having Workflow or Event Handler then it will not import properly

3. Site/Subsite Personal Webpackage using Sharepoint Designer

If user not having server access then open Sharepoint Designer and get Backup Sitecollection or SubSite

For Export

File Menu –> Export –> Personal Web Package

For Import

File Menu –> Import –> Personal Web Package

4. Import Site Wizard using Sharepoint Designer

File Menu –> Import –> Import Web Site Wizard

It will open New Wizard for Imprort from

  • External Site using http:\
  • Sharepoint Services
  • WebDev
  • FTP
  • File System

5. Save as Site Template Both Site and Subsite Click here for more details

6. WSP Package – Use WSP to move Webparts, Features, Event Handlers files to Server. How to Build WSP

Communities Tagged : Technology
Tagged: MOSS-2007 , Backup and restore