1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

How to automate and schedule WBADMIN START

Discussion in 'Windows Home Server' started by Aaron Tech, May 15, 2009.

  1. Aaron Tech

    Aaron Tech Guest

    Server 2008/Hyper-V is limited in the backup that only wbadmin is supported
    to backup. And WBADMIN is limited to what it can backup to based on if it
    is a tape, removable hardrive, usb, local hardrive, etc.

    I have a removable hardrive - a Dell RD1000. Basically, it mounts the
    hardrives as a removable volume. Ie: when you run diskpart and run the
    'list disk' command, the drive does NOT show up. However, if you run the
    'list volume', it shows up as an f: drive.

    Only the 'wbadmin start backup' command will work and that cannot be
    scheduled. And it prompts the user twice.
    Here is the way around it:

    AUTOMATE WBADMIN START

    Create a batch file with the following inside (this is assuming that the
    removable dirve is f: and you want to backup the c: and d: drives):

    @echo off
    Wbadmin start backup -backuptarget:f: - include:c:,d: -quiet < backup.txt

    Now create another file in the same directory as the backup.bat file with
    the following inside (please note the extra hard return after the Y):
    C
    Y

    The second file is essentially your answer file for all the prompts you are
    going to get by running the Backup.bat file.


    HOW TO SCHEDULE WBADMIN START

    Now the issue is that wbadmin start cannot be schedule. We now have to use
    the Windows 2008 AT command to schedule

    You can find the syntax for the AT command here:
    http://technet.microsoft.com/en-us/library/cc772590(WS.10).aspx
     
  2. *** See below.

    "Aaron Tech" <noreply@arrontech.com> wrote in message
    news:OsB6iPX1JHA.140@TK2MSFTNGP03.phx.gbl...
    > Server 2008/Hyper-V is limited in the backup that only wbadmin is
    > supported to backup. And WBADMIN is limited to what it can backup to
    > based on if it is a tape, removable hardrive, usb, local hardrive, etc.
    >
    > I have a removable hardrive - a Dell RD1000. Basically, it mounts the
    > hardrives as a removable volume. Ie: when you run diskpart and run the
    > 'list disk' command, the drive does NOT show up. However, if you run the
    > 'list volume', it shows up as an f: drive.
    >
    > Only the 'wbadmin start backup' command will work and that cannot be
    > scheduled. And it prompts the user twice.
    > Here is the way around it:
    >
    > AUTOMATE WBADMIN START
    >
    > Create a batch file with the following inside (this is assuming that the
    > removable dirve is f: and you want to backup the c: and d: drives):
    >
    > @echo off
    > Wbadmin start backup -backuptarget:f: - include:c:,d: -quiet < backup.txt
    >
    > Now create another file in the same directory as the backup.bat file with
    > the following inside (please note the extra hard return after the Y):
    > C
    > Y

    *** This is a somewhat fragile method - it will fail if the current working
    *** directory is different from the home directory of the batch file. Much
    *** better to code an explicit path, e.g. like so:
    *** Wbadmin start backup -backuptarget:f: - include:c:,d: ^
    *** -quiet < c:\Tools\backup.txt

    > The second file is essentially your answer file for all the prompts you
    > are going to get by running the Backup.bat file.
    >
    >
    > HOW TO SCHEDULE WBADMIN START
    >
    > Now the issue is that wbadmin start cannot be schedule. We now have to
    > use the Windows 2008 AT command to schedule
    >
    > You can find the syntax for the AT command here:
    > http://technet.microsoft.com/en-us/library/cc772590(WS.10).aspx


    *** at.exe is a native Windows NT tool. However, the inbuilt Task Scheduler
    *** would be a much better scheduling tool. It has far more options and
    *** it runs under a GUI.
     

Share This Page