Solved

SharePoint 2010 Backup and Restore

Posted on 2014-03-18
9
368 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
[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
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 500 total points
ID: 39941814
0
 

Author Comment

by:AXISHK
ID: 39942549
Tks
0
 

Author Closing Comment

by:AXISHK
ID: 39944302
Tks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

623 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