Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

what is the syndax for creating system state backup using  Wbadmin with scheduled daily  backup ?

Posted on 2011-03-15
7
Medium Priority
?
861 Views
Last Modified: 2012-08-13
hi all

easy one i think...

 what is the syndax for creating system state backup using  Wbadmin with scheduled daily  backup on each day at 5:00 am?

lest say the location for the backup is in remote location (File server)  \\hostname\sharename
0
Comment
Question by:ymg800
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 3

Expert Comment

by:Rdsterling
ID: 35137429
You cannot backup to a network drive directly using wbadmin. Use wbadmin start systemstatebackup
to backup to a volume. Then you'd have to create another scheduled task to copy the backup to your network drive.  See here for more details http://technet.microsoft.com/en-us/library/cc742124(WS.10).aspx
0
 

Author Comment

by:ymg800
ID: 35144998
so i used:

wbadmin start systemstatebackup -backupTarget:d:

1.this put the copy under drive D:WindowsImageBackup\servername, right?

2. it's prompt me with a question if yes or no..., can i automate the answer to yes to run it as a script?

3. next step is to use bath file and use the "move" command and them go to scheduel task in windows to time it every day to run this  bath?

thx.
0
 
LVL 3

Expert Comment

by:Rdsterling
ID: 35149035
use the -quiet switch at the end, so wbadmin start systemstatebackup -backupTarget:d: -quiet
0
 

Author Comment

by:ymg800
ID: 35224927
how can i run this command daily?
0
 
LVL 3

Accepted Solution

by:
Rdsterling earned 2000 total points
ID: 35265771
Setup a Scheduled Task in Task Scheduler.

Create your batch file (for this example we'll call it backup.cmd) containing the lines

wbadmin start systemstatebackup -backupTarget:d: -quiet
xcopy /s D:\WindowsImageBackup\servername \\severname\share

where servername is the name of your server and share is the name of the share name on the server
Save the batch file to a folder. For this example we'll call the folder scripts.

Open Task Scheduler and run through the Task Scheduler wizard to create a new Scheduled Task pointing to the batch file. Set it to run Daily.

Look here for more information on Task Scheduler 2.0 in Windows 2008.

http://msdn.microsoft.com/en-us/library/bb756979.aspx
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question