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.
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.