Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Sharepoint 2013 : Backup and Restore (part 2) - Export and Import - Using PowerShell, STSADM, Central Administration

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
1/24/2014 8:47:30 PM

2. Export and Import

SharePoint supports granular export and import of sites, lists, and libraries. In this section, I shall demonstrate exporting and importing using the three tools of choice—PowerShell, STSADM, and Central Administration.

Export and Import Using PowerShell

The following steps demonstrate using PowerShell commands from the PowerShell console to export a site to a file:

  1. From the Start menu, choose All Programs.
  2. Click Microsoft SharePoint 2013 Products.
  3. Click SharePoint 2013 Management Shell to launch the console.
  4. Type in the following text into the console, replacing the appropriate placeholders:
    Export-SPWeb <site/list/library URL> -Path <filename>
  5. To export a specific list or library, provide the full URL to the list or library, otherwise PowerShell will export the site if the URL is to the main site location.
  6. Include the [-Force] option to overwrite the file.
  7. Include the [-HaltonError] or [-HaltOnWarning] options to stop the export process in the event of an error or warning.
  8. Specify the [-IncludeUserSecurity] option if you need to ensure that all permissions applied to exported sites, lists, libraries, and contained items are included in the export file.
  9. Include the [-IncludeVersions] option to instruct PowerShell to include version information of items in the export file.
  10. Include the [-NoFileCompression] option to turn off file compression; this makes for a faster export but larger files on disk.
  11. The [-NoLogFile] option prevents PowerShell from creating a log of the export (not recommended generally).
  12. The [-UseSQLSnapshot] option is the familiar SQL snapshot option for deployments running on SQL Server Enterprise.

Note  PowerShell provides help for all commands—you may get help on the export command by typing Get-help Export-SPWeb into the PowerShell console.

In partner to the export command, the following step demonstrates importing an export file to a SharePoint site, list, or library:

  • 13.   Type the following text into the console, replacing the appropriate placeholders:
    Import-SPWeb <site/list/library URL> -Path <filename>

To import a specific list or library, provide the full URL to the list or library, otherwise PowerShell will import the site if the URL is to the main site location. For brevity, most of the options specified in the previous export steps exist for the import command. Use the Get-help feature of PowerShell to see all options.

Exporting of lists and libraries was new to SharePoint 2010. In SharePoint 2007, administrators could export and import sites only, using STSADM. SharePoint 2010, and now 2013, supports STSADM export/import, but adds the capability of list and library export by providing the full URL to the list or library.

Export and Import Using STSADM

The following steps demonstrate export of a site, list, or library using the STSADM command from a regular Windows command prompt:

  1. Type the following text into the console, replacing the appropriate placeholders:
    STSADM –o export –url <site/list/library url> -filename <filename>
  2. To export a specific list or library, provide the full URL to the list or library. Otherwise, PowerShell will export the site if the URL is to the main site location.
  3. Include the –overwrite option to overwrite the file.
  4. Include the -haltonfatalerror or -haltonwarning options to stop the export process in the event of an error or warning.
  5. Specifying the -includeusersecurity option will ensure that all permissions applied to exported sites, lists, libraries, and contained items are included in the export file.
  6. The -versions option instructs PowerShell to include version information of items in the export file.
  7. Include the -nofilecompression option to turn off file compression; this makes for a faster export but larger files on disk.
  8. The -nologfile option prevents PowerShell from creating a log of the export (not recommended generally).
  9. The -usesqlsnapshot option is the familiar SQL snapshot option for deployments running on SQL Server Enterprise.

    The following steps demonstrate using STSADM to import a site, list, or library. Look back through the command options previously listed for the export, as some also apply to the import command.

  10. Type the following text into the console, replacing the appropriate placeholders:
    STSADM –o import –url <site/list/library url> -filename <filename>
  11. To import a specific list or library, provide the full URL to the list or library.

Export Using Central Administration

In this section, I demonstrate how to use Central Administration to export a site, list, or library. You may have noticed that this section does not cover import via the Central Administration web browser interface—this is because Central Administration does not provide a mechanism for site, list, or library import from a file. To import, use either STSADM or PowerShell options, previously discussed.

  1. Open Central Administration.
  2. Click on the Backup and Restore heading link.
  3. Click the Export a Site or List link under the Granular Backup heading.
  4. Select the site collection and then the site and/or list (see Figure 2).

    9781430249412_Fig05-11.jpg

    Figure 2. Exporting a site, list, or library from Central Administration

  5. Provide the file location and toggle options for security and versions.
  6. Click the Start Export button to begin the export.
Other -----------------
- Sharepoint 2013 : Health Monitoring and Disaster Recovery - Maintaining Content Integrity (part 2) - Versioning
- Sharepoint 2013 : Health Monitoring and Disaster Recovery - Maintaining Content Integrity (part 1) - The Recycle Bin
- Sharepoint 2013 : Health Monitoring and Disaster Recovery - SharePoint Farm Design
- Sharepoint 2013 : Planning for Disaster Recovery
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 5) - Exclusion Collections
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 4) - Dependent Subcollections
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 3) - Creating a Dynamic Collection Limited to a Collection
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 2) - Creating a Dynamic Collection
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 1) - Static Collections
- Sharepoint 2013 : New Installation and Configuration - Configuring Your SharePoint Farm
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server