Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Terminating / cancelling a backup-spsite cmdlet operation

Posted on 2014-03-31
7
Medium Priority
?
2,625 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
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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 People like FTP.  It's a solid, stable, robust protocol for quickly transferring files between two hosts using TCP/IP.  In most cases it's much faster than SMB or CIFS, and certainly much easier to set up between organizations.  This…
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 …
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 …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

877 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