Monday, January 21, 2008

How to backup System State only in Windows Server 2008?





Ntbackup is deprecated in Windows Server 2008"coded name Longhorn" and is replaced by Windows Server Backup.



To backup the System State in Windows Server 2008, you have to use the command line "WBADMIN"



The exact command like this:

C:\>WBADMIN START SYSTEMSTATEBACKUP -backuptarget:E:



Click "Y" to start the backup


15 comments:

Unknown said...

Hi there,

Great script - but how do you get the script to backup to a certain folder?

The following returns an error for me - WBADMIN START SYSTEMSTATEBACKUP -backuptarget:E:\BACKUP\

Cheers
A

El DiPablo said...

Hi Andy, have you tried putting your backup path in quotes? I.E -backuptarget:"e:\backup\"

-EDP

El DiPablo said...

@Andy... nevermind, that doesn't work either. Another thing I noticed is that if you have say two partitions, the first being the OS, and the other containing Active directory, then it will not let you create the systate backup on either of the partitions as they are "critical". In 2003, you could do it... Weird

-EDP

Adam Moeloek said...

Any idea yet to backup to a folder?

Unknown said...

After running as Administrator in command prompt "WBADMIN START SYSTEMSTATEBACKUP -backuptarget:D:", I received "Enumeration of the files failed. Access is denied"

I tried add administrator user in "backup operator" group as well and the result is still the same.

Any advice?

Alexandre P said...

Enumeration of the files failed. Access is denied" is caused be your backtarget drive being too small for the shadowcopy, kinda sucks, before it was a small megebyte file, now it images the whole volume

nonnyboom said...

Hi there.
I want to know, how will I restore the backup ?

Thank you for your help.

rahulelectra said...

mine worked ... i did run cmd as run as administrator

Anuj Sharma said...

thanks for such nice post
regards
Anuj
http://www.winservers.co.in

Unknown said...

hi
i got a doubt..in my office using windows server 2003 and for system state backup its ntbackup ..i used to take system state alone via NTBACKUP but it never goes beyond 1.2 gb ..now recently we migrated to windows server 2008 and i took system state backup alone via windows server backup but it comes around 7.5 gb .. can anyone pls explain?

Javid said...

It worked fine, however how to restore it if required ?

shonpuri said...

FIRTS TYPE THE COMMAND TO GET VERSION

WBADMIN GET VERSION
AFTER GETTING LIST OF VERSION CHOOSE THE VERSION AND APPLY THIS CAOMMAND

WBADMIN START SYSTEMSTATERECOVERY-VERSION:"----"

Rajkumar Singh said...

For backup :

wbadmin start systemstatebackup -backuptarget:d:\adbackup

For Restore :

wbadmin get version

wbadmin start systemstaterecover -version:

MDiaz said...

Good Work thank you very much

Unknown said...

Tableau Data Visualization Software
SQIAR (http://www.sqiar.com/solutions/technology/tableau) is a leading Business Intelligence company and provides Tableau Software consultancy across United Kingdom and USA.