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

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 video Game
-   Rise of Incarnates [PC] Zeus Trailer
-   Heroes Reborn | The Extraordinary Among Us (Preview)
-   Battleborn | E3 2015 Gameplay Demo
-   Fortnite [PC] Mac Showcase Trailer
-   Overwatch [PC] Zarya Gameplay Trailer
-   Tony Hawk's Pro Skater 5 [PS3/PS4/X360/XOne] THPS Is Back Trailer
-   Bombing Busters Trailer
-   Blade & Soul 'What is Blade & Soul?' Trailer
-   Cast of the Seven Godsends 'Plague Armour' Trailer
-   Guncraft X360 Trailer
-   Disgaea 5: Alliance of Vengeance | Official Trailer
-   XCOM 2 [PC] E3 2015 Gameplay Trailer
-   RONIN | Turn-Based Action Platformer
-   Balance Benny | Trailer
-   We Happy Few | An Uncle Jack Episode - Nighty Night, The Pied Piper of Hamlyn, Part1
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
programming4us programming4us
PS4 game trailer XBox One game trailer
WiiU game trailer 3ds game trailer
Trailer game
 
programming4us
Heroes Charge
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer