Solved

Backup the content database of the web application

Posted on 2013-01-19
6
301 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
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
copy-item script help 15 68
SharePoint 2013 List with Ratings 6 34
PowerShell select-object returns empty lines 3 17
will this script work on w2k3 server? 2 11
Utilizing an array to gracefully append to a list of EmailAddresses
This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now