IT tutorials
 
Applications Server
 

Using SharePoint 2010 Disaster Recovery Tools (part 2) - Windows PowerShell, STSADM, SQL Server Backups

11/26/2012 5:50:44 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

4. Windows PowerShell

The SharePoint 2010 Management Shell provides you with a more flexible and dynamic way to perform backups and restores of your SharePoint information. Windows PowerShell also allows you to perform several types of backups and restores, including

  • Entire farm

  • Farm configuration only

  • Service applications

  • Web applications

  • Content databases

  • Site collections

  • Sites

  • Lists and libraries

SharePoint 2010 introduces its own set of Windows PowerShell snap-ins to extend the core functionality of Windows PowerShell by including SharePoint providers and SharePoint commands.

Information technology (IT) administrators are equipped with the tools necessary to have complete control and automation of system administration tasks, thereby increasing their productivity. The SharePoint 2010 Management Shell is a new command-line shell and task-based scripting technology that includes an intuitive scripting language specifically designed for IT administration. Windows PowerShell for SharePoint 2010 includes numerous system administration utilities with consistent syntax and naming conventions, as well as improved navigation of common management data such as the registry, certificate store, or Windows Management Instrumentation (WMI).

There are more than 300 Windows PowerShell for SharePoint cmdlets (pronounced “command-lets”) available immediately when you install SharePoint 2010. The SharePoint 2010 Management Shell is the recommended command-line interface for SharePoint administration and is expected to replace STSADM.

The Windows PowerShell cmdlets also provide additional functionality not available in Central Administration such as backup file compression and SQL Snapshots, which provide the option to restore data to an earlier point in time.

Getting Help with Windows PowerShell SharePoint cmdlets

Because there are so many cmdlets to remember, you may need some help to keep track of what all of them can do for you. Use the following steps to create a text file that contains a list of the SharePoint-specific cmdlets.

  1. Open the SharePoint 2010 Management Shell.

  2. Type in the following command.

    Get-command -noun sp* | out-file C:\SharePointCmdLets.txt

If you want additional information on a specific SharePoint cmdlet, you can use one of the following Windows PowerShell commands.

  • For example syntax on a specific cmdlet:

    get-help cmdletname -examples

  • For detailed information on a specific cmdlet:

    get-help cmdletname -detailed

  • For technical information on a specific cmdlet:

    get-help cmdletname -full

These commands are not case sensitive. However, the spacing within the command and the parameters must be precise. For instance, you cannot type a space in the parameter –full. Make sure there is no space between – and full.


5. STSADM

The STSADM command-line utility also provides functionality to perform backups of the same components as Windows PowerShell does. If you are familiar with STSADM from SharePoint Server 2007, you can use STSADM commands until you become familiar with Windows PowerShell. You must be a member of the Administrators group on the local computer to execute the STSADM command, and you have to drill down into the SharePoint Root directory to execute the STSADM command. The SharePoint Root directory is located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN.


Note:

Alternatively, you can add the directory to the system environment variable path by following these steps.


  1. Click Start, point to All Programs, select Control Panel, select System And Security, select System, and then click Advanced System Settings.

  2. On the Advanced tab, click Environment Variables.

  3. Under System Variables, select the variable Path and click Edit.

  4. Add the following to the end of the Variable Value field.

    ;C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN
    
    					  

    You must include the leading semicolon since the Path environment variable uses a semicolon as the delimiter between directories.

  5. Click OK.

After accessing this directory or adding the directory to the Path system variable, you can issue STSADM backup commands to perform your backups and restores; you can also use STSADM to accomplish several other administrative tasks for SharePoint 2010. Generally, you can perform the same tasks using STSADM or Windows PowerShell cmdlets. However, Windows PowerShell cmdlets are more powerful and tend to be more efficient than STSADM commands.

You can use the STSADM command-line tool for a few other functions that are not available in Central Administration, including backup file compression and SQL Snapshots, which provide the option to restore data to an earlier point in time. Again, these functions are also available by using Windows PowerShell cmdlets.


Note:

BEST PRACTICES Use either the Windows PowerShell or STSADM command-line utilities for backup and restore functions. These two options provide you with the ability to script your backups, and then you can schedule the scripts to run at specified times using Scheduled Tasks in Control Panel. This eliminates the need to interactively log into the graphical interface to perform your backups and restores.


6. SQL Server Backups

You can also have SharePoint information backed up by your SQL Server administrators or backup operators from within SQL Server. You may find this method useful if you have a SQL Server database administrator (DBA) who is responsible for all company content. Similar to performing SharePoint backups, SQL Server backups can be performed using a graphical user interface called SQL Server Management Studio, shown in Figure 6, or by using a Transact-SQL (T-SQL) BACKUP DATABASE command. T-SQL backups can be scripted and scheduled to run at specified times, similar to using Windows PowerShell and STSADM for backups.

Figure 6. The SQL Server 2008 Studio Management backup interface


You have several different options available when backing up your SharePoint information from within SQL Server. Often only a SQL Server DBA will completely understand these options and can leverage them to streamline your SharePoint backups. Some of these SQL Server specific options include

  • Create a copy of the database without affecting the scheduled database backup

  • Set an expiration date for the backup

  • Perform a transaction log backup

  • Verify the integrity of the backup on completion

  • Create a checksum on backed-up data to verify that data has not been tampered with after being backed up

 
Others
 
- Using SharePoint 2010 Disaster Recovery Tools (part 1) - Versioning, The Two-Stage Recycle Bin, Central Administration
- SharePoint 2010: Data Protection, Recoverability, and Availability - Disaster Recovery Planning
- SharePoint 2010: Data Protection, Recoverability, and Availability - Introducing Disaster Recovery
- Web Parts and Their Functionality in SharePoint 2010 (part 5) - Search Web Parts, Social Collaboration Web Parts
- Web Parts and Their Functionality in SharePoint 2010 (part 4) - Forms Web Parts, Media And Content Web Parts, Outlook Web App Web Parts
- Web Parts and Their Functionality in SharePoint 2010 (part 3) - Content Rollup Web Parts, Filter Web Parts
- Web Parts and Their Functionality in SharePoint 2010 (part 2) - Lists And Libraries Web Parts, Business Data Web Parts
- Web Parts and Their Functionality in SharePoint 2010 (part 1) - Managing Web Parts
- Microsoft Dynamics Sure Step 2010 : Positioning the solutions for specific industries
- Microsoft Dynamics Sure Step 2010 : Supporting the customer's buying cycle
 
 
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
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us