Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 7025

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 2162

Deprecated: Hook imagify_allow_picture_tags_for_webp is deprecated since version 2.2! Use imagify_allow_picture_tags_for_nextgen instead. in /www/collab365_296/public/wp-includes/functions.php on line 5758
“There is not enough space on the disk” while exporting sites in Sharepoint - Collab365
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Warning: Undefined array key "url" in /www/collab365_296/public/wp-content/plugins/thrive-visual-editor/thrive-dashboard/inc/smart-site/classes/class-tvd-smart-shortcodes.php on line 85

2013-06-06

The PowerShell cmdlet Export-SPWeb allows to export SharePoint sites, lists and libraries to a disk location. The -Path attribute allows to specify disk location and filename of the backup file.

The stsadm.exe application can be used basically for the same purpose with the syntax:

stsadm -o export

In this case, the -filename attribute determines the disk location and filename of the backup file. stsadm.exe is located in the BIN folder of the SharePoint hive:

  • C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14′ for SharePoint 2010 or ‘C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15‘ for SharePoint 2013.

If your SharePoint WFE is equipped with a small system volume and a large data volume, you can be sure to not run out of disk space in the system volume by using wisely the -Path or -filename attributes, right?
Nope.

Both commands first export the selected data to the TEMP folder specified by the %TEMP% environment variable, which is located by default on the system volume. Only after completion of the export job, the resulting compressed file(s) are moved to the specified location.

This poses a serious risk of running out of space on the system volume, with the consequences that you can easily imagine.

The solution is to temporarily change the value of the %TEMP% variable to point to a disk location with enough space.

In the command prompt, ECHO %TEMP% shows the current TEMP folder path. Its value can be modified by using :

  • Computer -> Properties -> Advanced System Settings -> Advanced -> Environment Variables
(Visited 537 times, 1 visits today)

About the author 

Mauro Zanetti

Summit Bundle

Get 200+ hours of Microsoft 365 Training for 27$!

Master Office 365, Power Platform & SharePoint & Teams With 200+ Hours Of Training Videos and 108 Ebooks in the Collab365 Academy. This offer is insane and is only available for a limited period.