Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determining size of SharePoint sites / site collections

I'm about to start googling but figured I'd start here. We already found a VB script that enumerates SharePoint site collections / sites. It calls stsadm to achieve this and it recursively evaluates each site to get the sub-sites.

I would like to know if we can modify that script to get the size (in bytes) of each site collection / site.

We're using MOSS 2007.

EDIT: I found a related question on SO but didn't see an answer for the disk space question.

like image 473
Mayo Avatar asked Oct 21 '09 15:10

Mayo


People also ask

What is the max size of a SharePoint site collection?

SharePoint site collection backup and restore are only supported for a maximum site collection size of 100 GB. For larger site collections, the complete content database must be backed up.

How much space does each SharePoint site have?

The amount of Microsoft SharePoint storage for your organization is based on your number of licenses. Your organization has total storage of 1 TB plus 10 GB per license of eligible plan purchased, plus any Microsoft 365 Extra File Storage add-on purchased.

How many sites can you have in a site collection?

The maximum recommended number of sites and subsites in a site collection is 250,000 sites.


1 Answers

You can get the site collection's size in MB.

stsadm -o enumsites -url http://url

<Sites Count="1">
  <Site 
    Url="http://url" 
    Owner="A\user" 
    SecondaryOwner="A\user2" 
    ContentDatabase="WSS_Content_DB"
    StorageUsedMB="13756" 
    StorageWarningMB="0"
    StorageMaxMB="0" />
</Sites>

Will update if I find a method for sites/subsites.

like image 173
Mayo Avatar answered Oct 03 '22 07:10

Mayo