Solved

SharePoint 2010 Backup and Restore

Posted on 2014-03-18
9
364 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
onenote 2016 sync 40 238
SharePoint 2013 6 45
How to renew SSL certificate on Sharepoint 2013 server. 6 285
Providing anonymous access to pdf form only - sharepoint 2013 9 27
A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

810 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