TechBubbles Microsoft Technology BLOG

PowerShell Command to backup SharePoint Service Application

Typically, Service Applications will be backed up as part of a full farm back-up, along with all other components of the farm, If  you want to backup individual service applications such as Managed Metadata service, User Profile Service then you can use Windows PowerShell to back up the SharePoint service application, below steps describes the procedure. SP2010

You are required to have farm administrative privileges to run the commands

Step1 – User has to added to the SharePoint_Shell_Access role for desired database. Use the Add-SPShellAdmin cmdlet   to add user to SharePoint_Shell_Access role as below

Add-SPShellAdmin -UserName Kalyan-PC\Guest

Step2 – Click SharePoint 2010 Management Shell from Start –>All Programs
Type the below command in PowerShell

Backup-SPFarm -Directory <BackupFolder> -BackupMethod {Full | Differential} -Item <ServiceApplicationName> [-Verbose]

<BackupFolder> is the path where you want to store the backups, it can be on local computer or on network path

<ServiceApplicationName> is the name of the service application name that you want to backup, you can find the names in central administration—>Application Management –> Manage Service Applications.

Step3  Run the below command to backup all the service applications

Backup-SPFarm -Directory <BackupFolder> -BackupMethod {Full | Differential} -Item "Farm\Shared Service Applications" [-Verbose]

Use Full backup method option when you are running the above command very first time. You can read this post to perform backup operation using SharePoint Central admin. Make sure when you are backing up the service application to network path, SQL Service account and Timer Service account need to have write permission on the folder.

Share this post :

About the author

Kalyan Bandarupalli

My name is kalyan, I am a software architect and builds the applications using Microsoft .NET technologies. Here I am trying to share what I feel and what I think with whoever comes along wandering to Internet home of mine.I hope that this page and its contents will speak for me and that is the reason I am not going to say anything specially about my self here.

Add Comment

TechBubbles Microsoft Technology BLOG

Follow me

Archives

Tag Cloud