Backing up SBS 2011 to a Network Location
By default the built-in backup process for SBS 2011 will only allow drives attached to the server to be selected as backup destinations (either internal or external), but will not let you backup to a UNC path or mapped drive. If you want to use a NAS as an onsite backup or maybe just a shared folder on another server without using 3rd party software you need to get your hands a little dirty and use some scripting.
Before continuing I would like to say that an onsite backup should in no way replace offsite backups but running both gives you better redundancy.
Doing a bit of searching around I found a few different solutions for this and combined some parts of a few to suit my requirements. The following script will run a full backup on each run and can be modified to keep as many backups as you want or, more likely, have space for. (Not being able to run incremental backups is a limitation of not backing up to a physical drive)
@echo off :: WeeklyFull.cmd :: Full backup of SBS2011 to network share using WBADMIN.EXE :: Made by Daniel
rem Delete oldest backup, rename the rest and create directory for new
NET USE X: \\network location\share
x: cd\ rem This line will delete the oldest backup (NOTE: I’ve gone with weekly but you can set it to whichever schedule you want.) if exist X:\WEEK5 RMDIR WEEK5 /S /Q
x: cd\ rem This section shuffles all the existing backups. Just add more lines for 6, 7, 8… to however many you want. RENAME WEEK4 WEEK5 RENAME WEEK3 WEEK4 RENAME WEEK2 WEEK3 RENAME WEEK1 WEEK2 rem Creates directory for new backup. mkdir WEEK1
NET USE X: /DELETE /YES
rem files and folders to include set include=C:,D:,E:
rem defining the backup location set backuplocation=\\network location\share\WEEK1
rem run the backup echo Backing up %include% to %backuplocation% wbadmin START BACKUP -backuptarget:%backuplocation% -include:%include% -allCritical -vssFull -quiet
Now all that’s left to do is alter the script to suit your needs and schedule it using the windows task scheduler.