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

x
?
Solved

SharePoint 2010 Backup and Restore

Posted on 2014-03-18
9
Medium Priority
?
374 Views
Last Modified: 2014-03-20
I have the following portal setup,

http://portal:8083                   
http://portal                             
http://portal:8088                   

For those portal, many sites are created, eg http://portal/sites/xxxx

How to use a powershell or stsadm to ensure all these sites and portal are backup ?

Tks
0
Comment
Question by:AXISHK
  • 5
  • 4
9 Comments
 
LVL 7

Expert Comment

by:SvenIA
ID: 39936998
You can perform a Farm Backup with PowerShell. First some things have to be in place in order to create a succesfull farm backup.

1.Your Central Admin app pool account must have read/write access to the location of the backups.
2.Your SQL Service account must have read/write access to the location of the backups.
3.If you're running a farm backup from STSADM or Windows PowerShell, the account you're running it as must have read/write access to the location of the backups
4.The location must be accessible from the SharePoint machine the backup is running on.
5.The location must be accessible from the SQL instance that SharePoint is trying to back up.
6.This is why all the examples are UNCs, \\server\share, and not local paths, C:\backups

Then you can backup with PowerShell. for Example;

Backup-SPFarm -Directory E:\Backup -BackupMethod full

Some information;

http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/22/use-powershell-to-back-up-your-sharepoint-farm.aspx
0
 

Author Comment

by:AXISHK
ID: 39938653
Tks.

I have surfed the restore of Sharepoint :
Restore-SPFarm -Directory C:\Backup -BackupId 12345678-90ab-cdef-1234-567890abcdef  -RestoreMethod overwrite -RestoreThreads 10 -Force

But, how to get the BackupId ??

I have a sharepoint frontend and SQL database backend. For disaster plan should be

1. Use Window backup to backup the frontend server.
2. Use your script above to fully backup the SharePoint data
3. To rebuild the system, use Window restore to rebuild the SharePoint Frontend.
4. Use the Sharepoint script to restore the data.

SQL database shouldn't be a concern. Once I rebuild the SQL server, the sharepoint data will be rebuild using the SharePoint restore script, correct ?

In addition, how can I use the sharepoint backup to restore a particular site, say, "http://portal:8080" or "http://portal/sites/xxx" ?

Tks
0
 
LVL 7

Expert Comment

by:SvenIA
ID: 39939143
The backups taken by PowerShell can be restored by Central Administration. Also it is possible to restore the farm using the PowerShell Script. To restore a farm from backup you can use Restore-SPFarm commandlet.

To obtain a list of all the backups available, with the backup ID, use:

Get-SPBackupHistory -Directory <Backup folder> -ShowBackup [-Verbose]

The output will be similar to this;

Backup ID
To backup a Site Collection, use the PowerShell script below;

Backup-SPSite -Identity <Site collection name> -Path <backup file> [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]

Backing up your SQL server is very important. After a restore of the server, the databases can be attached to the SharePoint server again.

It's very important that you test the restore procedures in different scenario's!!!
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 

Author Comment

by:AXISHK
ID: 39939721
I suppose "Backup-SPFarm" can restore everything once I install a new SharePoint server, with a new SQL Server. Why do I still need to backup the SQL server ?

Can I say SQL Server is important when frontend Sharepoint is still live but SQL Server need to rebuild ? Under this stituation, only SQL restore is needed, correct ?
0
 
LVL 7

Expert Comment

by:SvenIA
ID: 39941723
It doesn't really matter how, but you have to be sure that you have proper backups of your databases. And again test the restore procedure of the databases in different scenarios.
0
 

Author Comment

by:AXISHK
ID: 39941810
Agree. Just want to confirm one thing.

Does  "Backup-SPFarm" backup sharepoint configuration and content database stored in SQL Server ? Or what else will not be handled by SharePoint backup ?

Tks
0
 
LVL 7

Accepted Solution

by:
SvenIA earned 2000 total points
ID: 39941814
0
 

Author Comment

by:AXISHK
ID: 39942549
Tks
0
 

Author Closing Comment

by:AXISHK
ID: 39944302
Tks
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

971 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