Posts

Showing posts with the label Sharepoint

Cleaning up Sharepoint 2013 backups

Sharepoint is pretty horrible when it comes to backups, but presuming that you're doing Farm backups rather than just your content database, you'll have to deal with them. I do one full backup per week and differentials in between from Task Scheduler. This generates a lot of data that needs cleaning up, so here's a bit of script. Most of this is directly lifted from a script by  Meat Head Nerd  which I changed to look at the full backups rather than just age of backup. This will remove all full and differential backups prior to the number of full backups you want to keep. # Number of full back ups you want to keep $numfullbackups = 1 # Import the Sharepoint backup report xml file $spbrtoc = “c:\temp\spbrtoc.xml” [xml]$sp = gc $spbrtoc # Find the full backups in spbrtoc.xml $fullbackups = $sp.SPBackupRestoreHistory.SPHistoryObject | ? { $_.SPBackupMethod -eq 'Full' } # Get the start time of the last full backup $lastfullstarttime = $fu...

Popular posts from this blog

Avoid Microsoft Intune if you use G-Suite and Android

Setting Wallpaper for a Remote Desktop Session

DFS "Waiting for Initial Replication"