Solved

Backup the content database of the web application

Posted on 2013-01-19
6
334 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
Ready to trade in that old firewall?

Whether you need to trade-up to a shiny new Firebox or just ready to upgrade from whatever appliance you're using now, WatchGuard has the right appliance for you! Find your perfect Firebox today with appliance sizing tool!

 
LVL 14

Accepted Solution

by:
KoenVosters earned 500 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

636 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