Solved

Terminating / cancelling a backup-spsite cmdlet operation

Posted on 2014-03-31
7
1,831 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 11

Expert Comment

by:Tej Pratap Shukla ~Dexter
Comment Utility
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
Comment Utility
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
Comment Utility
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
Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

 

Author Comment

by:WillmerM
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Join & Write a Comment

When you are trying to access the server, have you ever encountered "The terminal server has exceeded the maximum number of allowed connection" error?  or "The user is attempting to log on to a Terminal Server in Remote Administration mode, but the …
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now