Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to run the following command:

Backup-SPFarm -Directory E:\Backups -BackupMethod full -Verbose

However it errors saying there isn't enough disk space... the backup will be about 1.8Gb in size, I have 27.52GB free, so why does it think I need 30Gb?

VERBOSE: Leaving BeginProcessing Method of Backup-SPFarm.
VERBOSE: Performing operation "Backup-SPFarm" on Target "SHAREPOINTSERV".
Backup-SPFarm : There is not enough disk space. Free additional space on your h
ard disk and then try again. Approximate amount of space needed: 30.12 GB. Amou
nt of space free on disk: 27.52 GB.
At E:\Backups\Script\BackupSharePointFarm.ps1:3 char:14
+ Backup-SPFarm <<<<  -Directory E:\Backups -BackupMethod full -Verbose
    + CategoryInfo          : InvalidData: (Microsoft.Share...mdletBackupFarm:
   SPCmdletBackupFarm) [Backup-SPFarm], SPException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletBackupFa
   rm

VERBOSE: Leaving ProcessRecord Method of Backup-SPFarm.
VERBOSE: Leaving EndProcessing Method of Backup-SPFarm.
share|improve this question
2  
What makes you think it'll be 1.8GB? I believe a full farm backup will included the content databases, and such, which will also include the log files. Have you looked at the size of the content DB log files? They grow pretty quickly. –  Jon Angliss Jan 14 '11 at 23:12
    
Because I've previously been able to back up and the files are quite small - around 600MB (I was wrong 4 days backup was 1.8Gb). However I have looked at the files and the log file for sharepoint config (SharePoint_Config_log.LDF) is massive (30Gb) considering the size of the content db (only has about 30 or 40 small docs in it - do you know why this would be? I was under the impression running a full backup cleared out the log files? –  Mr Shoubs Jan 15 '11 at 0:14

1 Answer 1

up vote 1 down vote accepted

The issue is due to the SharePoint_Config log file being too big - around 30Gb in my case!

I found this blog article pointing to here.

Hope it helps (I didn't test it - I changed Recovery model to Simple (After running a full backup) then srink'ed the log file and changed it back to full - I suspect next month it'll be back at 30Gb again ?!?. I hate sharepoint.

share|improve this answer
1  
If you're not using the feature, I'd suggest just leaving the recovery model set to "Simple." This is the easiest way to stop your .ldf file from blowing up. –  pk. Feb 15 '11 at 18:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.