Saturday, December 4, 2010

Diffrent ways to backup & restore in sharepoint

While working with the sharepoint we come to the situation frequently when we need to take the back up of web site or site collection or site from sourec & restore it to destination. There are following way to acheive this:-

1. Backup & Restore Site Collection:-

This can be achieve from the sharepoint UI or from STSADM utility. For backup from sharepoint UI it can be done using central administration->operation->perform backup & for restore it can be done from central administration->operation->restore from backup. From STSADM following command can be used:-

To back up site collection, you may use the following command:

stsadm –o backup –url -filename

Similarly, to restore a backed up file to a site collection, you may use the following command:

stsadm –o restore –url -filename

2. Backup & Restore Site:-

For backup & restore of site following STSADM command can be used:-

To backup a single site, you may use the following command:

stsadm –o export –url -filename

In order to restore a single site at any URl, you may use the following command:

stsadm –o import –url filename

3. Backup & Restore Web Site :-

SharePoint stores its data in content databases. A single website can have a number of content databases, and a content database can contain one or more site collections.You can view all the content databases associated with a given web application under central administration-> Application Management ->Content Databases. From this you can add or remove content databases to a given web site.

I hope this basic information will help you to perform back up & restore operation in sharepoint. Enjoyeeeeee :)

No comments:

Post a Comment