More on WBAdmin

The Gui based configuration tool for backups on SBS 2011 is totally useless.  Here are some command line based tools:

wbadmin enable backup
[-addtarget:<BackupTargetDisk>]
[-removetarget:<BackupTargetDisk>]
[-schedule:<TimeToRunBackup>]
[-include:<VolumesToInclude>]
[-allCritical]
[-quiet]

Syntax for Windows Server 2008 R2:

wbadmin enable backup
[-addtarget:<BackupTarget>]
[-removetarget:<BackupTarget>]
[-schedule:<TimeToRunBackup>]
[-include:<VolumesToInclude>]
[-nonRecurseInclude:<ItemsToInclude>]
[-exclude:<ItemsToExclude>]
[-nonRecurseExclude:<ItemsToExclude>][-systemState]
[-allCritical]
[-vssFull | -vssCopy]
[-user:<UserName>]
[-password:<Password>]
[-quiet]

Example for adding a series of volumes: wbadmin enable backup -include:c:\,d:\,h:\

This adds volumes to the backup.  Note the backslash after each drive letter.

More here:  http://technet.microsoft.com/en-us/library/cc742130%28v=ws.10%29.aspx

 

 

 

 

More on WBADMIN

The GUI based backup configuration tool for SBS 2011 is totally useless.  Here’s a summary of commands and some examples.  (In addition to the addtarget commands when adding a new disk)

Syntax for Windows Server 2008:

wbadmin enable backup
[-addtarget:<BackupTargetDisk>]
[-removetarget:<BackupTargetDisk>]
[-schedule:<TimeToRunBackup>]
[-include:<VolumesToInclude>]
[-allCritical]
[-quiet]

Syntax for Windows Server 2008 R2:

wbadmin enable backup
[-addtarget:<BackupTarget>]
[-removetarget:<BackupTarget>]
[-schedule:<TimeToRunBackup>]
[-include:<VolumesToInclude>]
[-nonRecurseInclude:<ItemsToInclude>]
[-exclude:<ItemsToExclude>]
[-nonRecurseExclude:<ItemsToExclude>][-systemState]
[-allCritical]
[-vssFull | -vssCopy]
[-user:<UserName>]
[-password:<Password>]
[-quiet]

SBS 2007, 2011: Sharepoint stops working after updates

You receive the following error:   “Cannot connect to the configuration database”.

 

First, try this script, from an administrator command prompt

 

cd\

cd Program Files\Common Files\Microsoft Shared\Web server extensions\12\BIN

psconfig -cmd upgrade -inplace b2b -force

More on this here:  http://blogs.technet.com/b/sbs/archive/2009/05/06/companyweb-inaccessible-after-sharepoint-3-0-service-pack-2.aspx