Hello
Guys, today I am going to share one of my interesting topics in
SharePoint 2010. This is an important one that you have to be ‘aware of’
as it belongs to recovery model. Yes, you are absolutely right; I am
talking about Backup-Restore methods in SharePoint 2010.
Microsoft
SharePoint 2010 has comes up with so many enhancements and backup
restore is one of them. I will try my best here to cover the
backup-restore based on GUI (Graphical User Interface), STSADM and
Powershell so that you will be proficient enough to work on these
mentioned methods independently.
Backup Operations
Backup operations are associated with:
· Site collection
· Subsite
· List and Document Libraries
How to take the backup of the site collection:
By using Central Administration
· Open the central administration
· Backup and Restore
· Granular Backup
· Perform a site collection backup
· Select the appropriate web application and site collection from the dropdown
· Provide the filename
· Start backup
· You will be redirected to _admin/sitebackuporexportstatus.aspx
· It shows the status ‘Operation initializing’
· It will take some time to complete the backup depending on the size of the site collection
· As soon as the backup completed then the status will change to ‘Operation Succeeded’
· That’s
it and you are done... check the file location and you will see the
backup file that you have specified in the above mentioned steps.
By using STSADM command
For site collection backup:
stsadm.exe -o backup -URL <URL> -filename <filename> [-overwrite]
By using Powershell command
Backup-SPSite -Identity http://SharePointBackuptesting/sites/AMOL2010 -Path <Filename>
How to take the backup of the subsite
By using Central Administration
§ Open the central administration
§ Backup and restore
§ Granular backup
§ Export a site or list
§ Select the appropriate web application, site collection and subsite
§ Provide the filename
§ Select Export Security (If you want to include permissions)
§ Export Versions (by default ‘All Versions’ selected)
§ Start backup
§ You will be redirected to _admin/sitebackuporexportstatus.aspx
§ It will take some time to complete the backup depending on the size of the site collection
§ As soon as the backup completed then the status will change to ‘Operation Succeeded’
§ That’s
it and you are done... check the file location and you will see the
backup file that you have specified in the above mentioned steps.
By using STSADM command
stsadm.exe -o export -URL <URL to be exported> -filename <export file name>
By using Powershell command
Export-SPWeb -Identity <URL of the subsite> -Path <filename> -IncludeUserSecurity
How to take the backup of the List/Document Library
By using Central Administration
· Open the central administration
· Backup and restore
· Granular backup
· Export a site or list
· Select the appropriate web application, site collection and List/Document Library.
· Provide the filename
· Select Export Security (If you want to include permissions)
· Export Versions (by default ‘All Versions’ selected)
· Start backup
· You will be redirected to _admin/sitebackuporexportstatus.aspx
· It will take some time to complete the backup depending on the size of the site collection
· As soon as the backup completed then the status will change to ‘Operation Succeeded’
· That’s
it and you are done... check the file location and you will see the
backup file that you have specified in the above mentioned steps.
By using Powershell command
Export-SPWeb –Identity <Site URL> -Path <Filename> -ItemURL “Lists/Tasks” –includeusersecurity
If
you face any queries/questions regarding the above mentioned
information then please let me know…I would be more than happy to help
you as well as resolves your issues, Thank you.
Note: Complete Restore Operations
will be posted in the next article... so stay tuned…very soon I will
provide you the restore information that will be the concluding part of
this recovery operations.
Examples:
Backup of the List:
PS
C:\> Export-SPWeb -Identity
http://itweb.contoso.com/sites/SP2010_Backup/dspace -Path
C:\SP2010_Backups\documentbkps.cmp -ItemUrl "Lists/Calendar"
Additional notes:
Filename: SP2010_Backups\documentbkps.cmp
Item URL means the name of the list that you wanna backup (here the name of the list is 'Calendar')
Note:
if your list name contain spaces then you need to use double quotes,
otherwise the Windows PowerShell command will return errors.
Backup of the document library:
PS
C:\> Export-SPWeb -Identity
http://itweb.contoso.com/sites/SP2010_Backup/dspace -Path
C:\SP2010_Backups\testlibbkp2s.cmp -ItemUrl test -Force
Additional notes:
Filename: SP2010_Backups\testlibbkp2s.cmp