Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Terminating / cancelling a backup-spsite cmdlet operation

Posted on 2014-03-31
7
Medium Priority
?
2,475 Views
Last Modified: 2014-05-07
Guys,
After initiating a backup of a site collection using the powershell cmdlet backup-spsite I needed to stop the backup.
How can this be done?
Thanks,
Mark
0
Comment
Question by:WillmerM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 12

Expert Comment

by:Tej Pratap Shukla ~Dexter
ID: 39968448
Hey there
 
Well i don't know this might work or not but the command :
"Stop-Process -processname "or "Stop-Process 123" kills the active process.

Thanks
~Dex
0
 

Author Comment

by:WillmerM
ID: 39998008
I've recently read a blog that mentions the cmdlet SPBackupRestoreConsole.Abort but I don't understand how to get the powershell console.

Ideas?
0
 
LVL 12

Expert Comment

by:Tej Pratap Shukla ~Dexter
ID: 39998250
Hey there
You need to first locate power shell icon in the bottom tray of your home screen.
Then a window pops up where you can track your current backup progress.Type in SPBackupRestoreConsole.Abort command and hit enter.

Thanks
~Dex
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:WillmerM
ID: 39998824
Shourjo, Hi.
I too have seen the steps you've mentioned but cannot find the "PowerShell icon in the  bottom tray of your home screen". Have you tried this yourself?
I use the standard PowerShell cmd line available in the SharePoint 2010 start menu.
Does the "home screen" refer to the Desktop?
Does the "bottom tray" refer to the taskbar?
Regards,
0
 
LVL 12

Expert Comment

by:Tej Pratap Shukla ~Dexter
ID: 40000801
Well yes powershell icon could be located at the taskbar.If you are facing difficulty try command line procedure to abort http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.backup.spbackuprestoreconsole.abort.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1

I hope this solves your queries.

Thanks
~Dex
powershell.png
0
 

Accepted Solution

by:
WillmerM earned 0 total points
ID: 40016506
Dex, Thanks for your efforts on this.

SPBackupRestoreConsole.Abort is a method of the Microsoft.SharePoint.Administration.Backup assembly. It takes a GUID as the only parameter that represents the backup or restore operation that is to be aborted.

It also seems that the activity caused by cmdlet Backup-SPSite can be seen by  neither  SPBackupRestoreConsole nor the Central Administration granular back monitor. There is no way to therefore get the GUID required by the Abort method.

From tests that I've made it seems that once you start a Backup-SPSite cmdlet there is no simple/graceful means to actually abort it.

I created a backup operation using the code provided at "http://msdn.microsoft.com/en-us/library/cc264292(v=office.14).aspx". I was able to monitor this process (farm backup) using Central Administration and can obtain the GUID to abort this operation.

Because of this limitation and isolation, I'm not such a fan of Backup_SPSite as I used to be.
Regards,
Mark
0
 
LVL 12

Expert Comment

by:Tej Pratap Shukla ~Dexter
ID: 40016718
Dear Mark,
Well good to hear that you resolved the issue by your own using Central Administration and obtaining the GUID to abort the operation.I hope the users troubled by backup-spsite would prefer central administration tools , obtain GUID and do whatever they want.

Thanks
~Dex
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question