About SharePoint backup restoration, Import and Export

Source: Internet
Author: User

[Http://www.cnblogs.com/flowman/archive/2012/01/11/2318049.html]

How can I move a Sharepoint website from one location to another? How can I publish or copy a Sharepoint website from one location to another? You may frequently use the Backup Recovery and import/export functions of SharePoint.

Backup and restoration correspond to the import and export functions. These functions are often used, but some of the details may not be noticed at ordinary times. This article will describe these details.

 

I. Backup and Restoration

When backing up and restoring a website, you actually perform three separate operations: First, you back up the website to a single file. Then, you create a blank website as the target website. Finally, you can restore the backup website to the target website.

Backup recovery has two granularities: field-level backup and website set-level backup. This section only describes website set backup.

 

1. Back up the website set

 

Website backup can be implemented either through the SharePoint 2010 management shell command or through the backup and restoration function of the Management Center. The two functions are identical.

Assume that we have a website set at http: // andy2008: 11000 /. We first back up the website set using commands. The procedure is as follows:

A. Click start to enter allProgram", Enter" Microsoft SharePoint 2010 products"

B. Select "SharePoint 2010 management shell" (if you do not have the permission, select "SharePoint 2010 management shell", right-click it, and select "Run as administrator ")

C. Enter the following command: Backup-spsite http: // andy2008: 11000-path c: \ IPO. Bak, and press enter to confirm the execution. The execution is as follows:

 

 

D. Check the backup file and generate the file IPO. Bak under the root directory of drive C. The backup is successful.

We can also back up the website set through the interface. The specific steps are as follows:

A. Go to the SharePoint management center.

B. Click the Backup and Restore menu.

 

 

C. Select "execute website set backup" in "granular backup.

 

 

D. Select the website set to be backed up.

 

 

E. Click "Change website set" to change the website set.

F. Select the website set to be backed up and click "OK ".

 

 

G. type the target directory and file name to be backed up and click "Start backup"

 

 

H. The system will go to the backup page. After the backup is successful, the system will go to the completion page.

 

 

2. Create and restore the target website set

The SharePoint website set is based on the application. To create a website set, you must first create a Sharepoint application and specify the database of the target website. The procedure is as follows:

A. Go to the SharePoint management center.

B. Click "Application Management"

 

C. Click "manage Web Applications" in "Web Applications"

 

 

D. Click "new" to enter

 

 

 

 

 

E. Click "OK" to create the specified application.

F. Click the "Application Management" menu and click "create website set" under "website set"

 

 

G. Specify the "title", "url", and "User Name", and click "OK". The system will create the specified website set.

 

3. Restore the website set

 

Because the sharepoint2010 management center does not submit a website restoration interface, we can only restore the website through the command line. The procedure is as follows:

A. When restoring a website set, you must specify the name of the restored database.

B. Click start to enter all programs and Microsoft SharePoint 2010 products"

C. Select "SharePoint 2010 management shell" (if you do not have the permission, select "SharePoint 2010 management shell", right-click it, and select "Run as administrator ")

D. Enter the following command: Restore-spsite http: // andy2008: 11000-path c: \ IPO. bak-force-databaseserver andy2008-databasename wss_content_11000, and press enter to confirm the execution:

 

E. Enter "a" and press enter to confirm. The system starts restoring the website set.

 

Ii. Import and export functions

Import and export are mainly used for Backup recovery at the list and website level, and their main functions are similar to backup recovery. This section only describes how to import and export websites.

 

1. Export websites

You can export a website by using commands or administration.

The procedure of using the Management Center is as follows:

A. Go to the SharePoint management center and select "Backup and Restore"

 

 

B. Select "Export website and list" in "granular backup"

 

 

C. You can select a specified website set and select "Change website set" to change the information of the website set to be exported.

 

 

D. If you do not select "website", all website information under the website set is exported by default. You can select the "website" information to export.

 

E. Click "start Export" to export the specified website information.

 

 

2. Use the following commands to export the website:

A. Click start to go to all programs and Microsoft SharePoint 2010 products"

B. Select "SharePoint 2010 management shell" (if you do not have the permission, select "SharePoint 2010 management shell", right-click it, and select "Run as administrator ")

C. Enter the following command: Export-spweb http: // andy2008: 11000/IPO-path c: \ IPO. CMP, and press enter to confirm. The execution is as follows:

 

D. Check whether the exported files are complete and complete the website export function.

 

3. Import the website

The imported website template must be the same as the exported website template. Otherwise, the import operation will fail. A website template is a template selected when you create a website set. Because sharepoint2010 does not provide an interface for importing websites, we can only import websites in command line mode.

A. Click start to go to all programs and Microsoft SharePoint 2010 products"

B. Select "SharePoint 2010 management shell" (if you do not have the permission, select "SharePoint 2010 management shell", right-click it, and select "Run as administrator ")

C. Enter the following command: import-spweb http: // andy2008: 11000/IPO-path c: \ IPO. CMP, and press enter to confirm. The execution is as follows:

 

D. Check whether the website can be accessed correctly to complete the import operation.

 

Iii. Differences between Backup Recovery and Import/Export

 

1. Restoration completely overwrites the website, that is, the restored website is exactly the same as the previous website, including data and permissions. The-overwrite option is not available for import, therefore, there may be more content to import than the original website, that is, more data may be imported, and user permissions are not included in the import.

2. Backup and restoration are the transfer of website sets. Export and import are generally used to transfer individual websites.

3. The latest granularity of backup and restoration is the website set, and the largest granularity is the server farm. The largest granularity for export and import is the website set, and the smallest granularity is the list, which also contains the import and export of a website.

4. A typical application scenario of import and export is the merger of multiple websites. It is the website that exists under multiple website sets. Now it needs to be merged into one website set. At this time, it needs to be imported and exported to merge the websites under the website set. Backup and restoration cannot be achieved.

5. Backup recovery is mainly used for full backup and restoration of website sets.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.