Solved

Terminating / cancelling a backup-spsite cmdlet operation

Posted on 2014-03-31
7
2,289 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 11

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 11

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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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 11

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 11

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Sometimes when I receive a call from my users to solve their problems it is very difficult for me to found their computer IP address. Even finding their computer Host to provide remote support can be a problem.  So I resorted to Goo…
Determining the an SCCM package name from the Package ID
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
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.…
Suggested Courses

624 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