Bryan Soltis

Senior Software Engineer
MCSD.NET, MCAD, MCP

About Bryan

I am Senior Software Engineer at Bit-Wizards Custom Software Solutions, Inc.  I mainly do web-based development using ASP.NET, AJAX, & other web technologies.  I have created numerous websites, CMS sites, and a few SilverLight applications.  In my spare time I love doing anything athletic, (attempt to) play  music, watch movies, and spend time with my wife and daughter.

Windows Server 2008 Backup to a network share

Tuesday, September 23, 2008 11:01 | posted by: bryan

With the installation of Windows Server 2008 comes with it the new Windows Server Backup utility.  This application replaces the ntbackup.exe from years past and gives many new features and abilities to network administrators.  However, with it also so comes some changes and shortcomings.  Specifically, the ability to work with a network drive as the backup location.

Windows Server Update has the ability to backup an entire OS to a specified location.  The system, through “Scheduled BackUps”, will perform full and incremental backups of that server.  This is done by specifying a local hard drive to the machine.  This drive will be completely formatted and then the backup will be placed on that drive.  From that point on, incremental backups will be placed on that drive detailing a history of the files and maintaining its own disk size.

This process works great, if you have a local drive.  However, try using a network drive as your backup location.

Windows Server BackUp will allow you to backup to a network share when performing a “Manual BackUp” of the system:

Completing this process will result in a full backup being performed on the system to the specified network drive. 

The issue is that Windows Server Update will only allow you to schedule a backup to a local drive.   The option to save the backup to a network share is not even available.  I even tried to map a network drive but that failed as well.  The system requires that a physical hard drive be present with no operating system files installed on it to allow a backup to be placed on it.

To get around this, I did the following:

I used the following command line syntax:

Wbadmin start backup –backupTarget:\\[Server]\[Share name] –include:C: -vssFull –quiet

That command will perform a complete backup on the server without any user interaction.  I saved that command as a batch file.  I then setup a scheduled task to execute that command on a daily basis.

This process will work fine, except every time the batch file runs it will create a full backup, over writing the existing backup.  Incremental backups are not an option when using the command line or the GUI.  Windows Server Backup is egineered to recognize when a full backup has been completed and incrementally backup the files after that.  Seeing how this is a "manual backup" that I have scheduled, everytime it runs it assumes there is no pre-existing backup and performs a full backup instead. Ideally, we would schedule a full backup of the system to the network share once, then have daily incremental backups of the systems from that point on.  This process is not supported in Windows Server Backup. 

And if you thought of just using ntbackup.exe on Windows Server 2008, guess again.  Microsoft has released a tool to allow Windows Server 2008 to read ntbackup.exe backup files, however, it will not backup any new files.

I contacted Microsoft support regarding this issue but they were clueless.  I find it hard to believe that every company will be backing up their servers to a hard drive on the machine.  Hopefully Microsoft comes out with a solution to this issue soon.

 

Tags:

PermaLink   E-Mail Article   RSS Comment Feed  

Comments

November 9. 2008 11:41

Blair

Thanks for this post. I was about to abandon the otherwise superior server backup solution for something half assed. But this made it workSmile

Blair

November 27. 2008 16:44

Amir Fasad

Excellent article. Perfectly describes the issue that we encountered. I'm just as surprised as you are that MS has no idea about this situation. We've tested Server 2008 extensively, and it seems like almost everything is two steps forward, one step back. Nice new features promised, but setbacks from earlier functionality that always worked fine and didn't need to be tampered with.

We've had to shelve 2008 Server for production systems for the time being, and go back to 2003 Server. Just way too many bugs, glitches, and hiccups to be usable on our production machines.

Amir Fasad

December 20. 2008 01:30

Lee

Another option is if your network drive is iScsi ready, you can setup the iscsi connection and Windows server backup will see that at a local drive.
I'm doing that with one of our servers and a Thecus NAS, seems to be working well so far.

Lee Canada

January 2. 2009 00:54

Slavko

  Thank you for this post. It's exactly how I would try to resolve this issue, storing Windows Server 2008 backup on the network drive. I followed the suggestion, created batch file to create backup on the network, and when I run it interactively (by running batch file), it's just fine and network backup is performed. But if I schedule task by running Task Scheduler, it always fails, so I'm not able to perform backup on the network drive ...

Slavko

January 2. 2009 08:40

bryan

I think your scheduled task is failing due to authentication.  Instead of a network share, you could try mapping a drive from the host server to the network drive.  This may allow the scheduled task to run without error.  Or, you could try a network admin account for the scheduled task, if you're not already doing so.  

I've run into similar issues when scheduling tasks across a network and have had to get "creative" in my solutions.

bryan

January 3. 2009 06:49

Slavko

  Hello, Bryan!

  Thank you for the fast reply and suggestions. Do I understand correctly that you're suggesting mapping network share locally and then performing Windows Server Backup? If I try to do that, I got following error:

The backup cannot be completed because the backup destination is a shared folder mapped to a drive letter. Use the Universal Naming Convention (UNC) path (\\servername\sharename) of the backup destination instead.

  I get this error if I run wbadmin interactively ... Permissions should not be an issue, as in my testing environment I'm logged on as domain administrator and Everyone has full permissions to network share...

  I have created two simple .bat scripts, just to make sure that there is no permission problem. First one reads:

c:\windows\system32\wbadmin.exe start backup -backuptarget:\\192.168.1.1\backup -include:c: -vssfull -quiet

  Second script is simple:

copy c:\windows\system32\notepad.exe \\192.168.1.1\backup

  If I run either of this two scripts interactively, it runs fine and it produce expected result (I'm logged on as domain administrator). If I create scheduled task which run second script, it produce expected result (notepad.exe is copied to network share). But if I modify Scheduled Task and select first task as the action, it does not create network backup (last run result is 0xFFFFFFFE). Scheduled Task is configured to run in the context of domain administrator and if I run .bat interactively, it creates backup on the network.

  I expect Lee's solution to work, but I don't have iSCSI NAS ...

Slavko

January 3. 2009 21:03

bryan

I've run into similar issues with the scheduled task, as well.  In my searching, I did come across a program called BackupAssist which looked promising.  I haven't used it since the new version was released, but at the time they said it would fill in many of the gaps left by Microsoft's backup solution.

http://www.backupassist.com/index.html

Best of luck.

bryan United States

January 26. 2009 08:43

David Gordon

Great advice.  Helped so very much.  Thanks.

Best Wishes, D.

David Gordon Austria

February 8. 2009 10:24

attiks

If you get error 0xfffffffe, try checking 'run with highest privileges', it worked for me

attiks

March 16. 2009 15:23

Nicolaj Rasmussen

Hi, have you tried the registry hack in KB944530?
I'm not sure if it also changes the behaviour to allow UNC backup, I haven't tested it yet.

http://support.microsoft.com/kb/944530/en

Nicolaj Rasmussen Denmark

March 20. 2009 01:50

bryan

Nicolaj,

That article seems to discuss only system state backups which was a little different than what we needed.  However, it does seem to provide some good info and the fact that it's a Microsoft KB gives me a little more confidence in it.

Thank you for the tip!

bryan United States

March 22. 2009 12:42

MichaelD!

WOW I am right there with you when you say that it is BAFFLING why network share-backups are only one-shot, and not SCHEDULED... WHAT WERE THEY THINKING?! Frown

MichaelD! United States

April 12. 2009 21:44

Paul

Microsoft was thinking about all the money they would be making from there new DPM software that they are selling... They pretty much took NTBACKUP's capabilities out of Windows server 2008 and created a new seperate product called DPM that runs around $600 per server. I do hope microsoft gets its head out of its rear and see's that they are causeing a very large reduction in their overall sales of windows server 2008 not to mention exchange server 2007 thanks to this idiotic plan they came up with to force people to pay for backup software that should and has always been a free feature included with windows.

Paul United States

May 24. 2009 16:22

Nicholas Piasecki

Thanks for posting this. I agree; Microsoft has gone completely bananas on this one.

Nicholas Piasecki United States

June 22. 2009 10:19

Yoan

I just made 1 try to backup only the directories that I need, so I'll give the expample (it works!):

xcopy "C:\Users\Administrator\Documents\*" \\server02\shared_folder /Y /Q /S /H
xcopy "C:\Users\Administrator\Pictures\*" \\server02\shared_folder /Y /Q /S /H

you can put as much rows as you want, so you can start giving many directories to backup in just one .bat file that you will put as daily task ;)

Yoan Bulgaria

June 22. 2009 14:18

MichaelD!

BackupAssist FTW... It really is worth the moolah you pay for it.  It does everything.

MichaelD! United States

July 25. 2009 17:33

Homeserve J

Taking NTBACKUP's capabilities out of Windows server 2008 and creating a new seperate product called DPM which costs the earth is not customer focused ....  wait its Microsoft isn't it and this is a way of generating more revenue.

Looks like I need to learn how to script xcopy

Homeserve J

August 15. 2009 17:25

naYS

It really is worth the money to pay for backupassist.  Try it out!

naYS

August 22. 2009 15:55

Gerry Kirby

What happens when the backup disk for W2008 Backup fills up?  I have read the older backups are then overwritten.  Excellent I said, but then realalised the 1st backup is the only Full backup and subsequent backups are incremental!!!!  What happens in this case? Should the backup be amended to only use FULL backups?  This is a bit wasteful.

GK

Gerry Kirby Ireland

August 24. 2009 03:31

Fatshark's Personal Blog

Windows Server 2008 Backup to a network share

With the installation of Windows Server 2008 comes with it the new Windows Server Backup utility.  This application replaces the ntbackup.exe from years past and gives many new features and abilities to network administrators.  However, with it also so co

Fatshark's Personal Blog

September 1. 2009 17:05

Chris

It is possible to use NTBackup on Windows 2008 (though not supported).  The catch is that ShadowCopy is not available on Windows 2008 so it won't work for open files...

Have a look at this article for more information.
www.dscoduc.com/.../...ackups-for-VistaWin2k8.aspx

Chris United States

September 1. 2009 18:14

bryan

Chris,

Excellent suggestion and link.  W/O Shadow Copy, you'd lose a lot fo system files which would prevent restoring a complete machine.  However, in some circustances you'd be able to get the applicaitons files and that would be a start.

bryan United States

September 6. 2009 12:52

Milford MA Real Estate

Thanks for this excellent article. I have often had difficulty with getting back ups taken care of. This should be most helpful! I have had a hard time figuring how to get around the local drive issue.

Milford MA Real Estate United States

September 7. 2009 00:04

Website Design Manchester

Handy advice, its almost our backup time so this is getting given a chance. Time to get that command saved as a batch file and execute daily. Thanks for this.

Website Design Manchester United Kingdom

September 7. 2009 18:41

Dui Indiana

This process works great.I used a network drive as the backup location.

Dui Indiana Caribbean

September 13. 2009 20:31

Hari

Is it possible to shedule more than one backup in windows 2008. When I tried to do so, it prompted me to delete the existing shedule.

Please advice....

Hari India

September 25. 2009 07:22

Joe

My Server 08 is case sensitive when it comes to drive letters.

Your Example failed

Wbadmin start backup –backupTarget:\\[Server]\[Share name] –include:C: -vssFull –quiet

But, a lowercase letter on C: did

Wbadmin start backup –backupTarget:\\[Server]\[Share name] –include:c: -vssFull –quiet

Maybe it's my server, just FYI

Joe United States

October 2. 2009 16:40

Anons

Anyone got an example of the bat file?

Something like

ECHO OFF
CLS
WBADMIN START BACKUP -backupTarget:"\\Elite-fs\Exchange Backup" -include:C:,D: -vssFull -quiet

Do you have to put a "wait" in? Or can the cmd window just close once the backup is running?

Anons

October 18. 2009 04:57

Gerardo

I have the same problem as Slavko created batch file to create backup on the network, and when I run it interactively (by running batch file), it's just fine and network backup is performed. But if I schedule task by running Task Scheduler, it always fails, I've tried all sorts of "creativeness" but nothing is working. I've tried batch file, I've tried running the command and passing parms. Moreover, what happens when the UNC has a password? I've tried adding an action to the task in which I prior to the batch/cmd I ran the cmd "net use \\server\share /user:domain\user_name passwd" that doesn't work!? Slavko did you fix it? How? Thanks.

Gerardo Canada

October 21. 2009 04:37

Gerardo

I overlooked one of the options -password adding this option solved my problem.

batch file
wbadmin start backup -backupTarget:\\<machine>\<share> -include:<drives> -user:<user> -password:<domain>\<pwd> > c:\<path>\<logs>\log.log

Gerardo Canada

October 23. 2009 01:32

Link Building India

I'm running an automated back on my Vista box that uses a share on my server for a target with the built-in Vista backup utility...So why the hell would they pull that (back) out for server?

Automated backups always use the Task Scheduler so that's not so much a work around as a dent in the wizard.

I'll play with this a bit later today (assuming I can find the time) ... Damn that's weird...

Link Building India United States

October 29. 2009 03:02

Locksmith

I have the same problem as Slavko created batch file to create backup on the network,and when I run it interactively,it's just fine and network backup is performed.<a href= "www.hobokenlocksmith.com">Locksmith</a>

Locksmith United States

November 9. 2009 20:15

Locksmith

Is it possible to schedule more than one backup in windows 2007?
--------------------------------------------------------------------
24 hours locksmith

Locksmith United States

January 19. 2010 18:08

lbennett

I just ran into this problem today. Does anyone know of a good open source backup program to get around this?

lbennett

Add comment


(Will show your Gravatar icon)
biuquote
  • Comment
  • Preview
Loading