Solved

Terminating / cancelling a backup-spsite cmdlet operation

Posted on 2014-03-31
7
1,996 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
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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

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

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

Suggested Solutions

Back in July, I blogged about how Microsoft's new server pricing model, combined with the end of the Small Business Server package, would result in significant cost increases for many small businesses (see SBS End of Life: Microsoft Punishes Small B…
Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

823 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