Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Backup the content database of the web application

Posted on 2013-01-19
6
Medium Priority
?
340 Views
Last Modified: 2013-02-06
How to create backup of the content database of particular site in Share point? Can we do this via powershell
0
Comment
Question by:CalmSoul
[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
6 Comments
 
LVL 11

Expert Comment

by:itguy565
ID: 38797782
Please refer to the following website:

http://technet.microsoft.com/en-us/library/ee428327.aspx


Here is the command to do it..
Backup-SPFarm -Directory   <BackupFolder>  -BackupMethod {Full | Differential} -Item <ContentDatabaseName> [-Verbose]
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 38797932
Have a look at this question:

Sharepoint automated backups via Powershell

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_27654022.html

Gary
0
 
LVL 5

Author Comment

by:CalmSoul
ID: 38798969
How to identify which content database site is using? Sorry I am new to SP
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 14

Accepted Solution

by:
KoenVosters earned 2000 total points
ID: 38800366
Central administration
Manage Content Databases
In the dropdown you can select the web application
That should show you the content databases of that web application

If you only have one, it's easy.
If you have 2 or three, run this powershell command against each content DB to see which site collections are in the DB

Get-SPSite -Limit All  -ContentDatabase contentdbname | select url, @{label="Size";Expression={$_.usage.storage}}
0
 
LVL 5

Author Comment

by:CalmSoul
ID: 38802989
@KoenVosters
I got following result from the query, it still doesn't show me which Content DB each of these sites are using. What I am trying to achieve is clone site1 to site1clone


PS C:\Users\user1> Get-SPSite -Limit All  -ContentDatabase WSS_Content | selec
t url, @{label="Size";Expression={$_.usage.storage}}

Url                                     Size
---                                     ----
http://localhost
http://localhost/sites/site1
http://localhost/sites/site1clone
http://localhost/sites/site2
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 38804448
Ok, so your site1 is in WSS_Content content database.

But if you want to move sites in the same content database, you can just use import/export:

http://shannonbray.wordpress.com/2010/06/26/moving-sharepoint-2007-sites-to-another-environment-with-powershell/
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

730 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