+ Post New Thread
Results 1 to 7 of 7
Windows Server 2008 R2 Thread, Windows Backup, command line in Technical; I'm trying to schedule windows server backups using the command line (wbadmin) I have read through the documentation and chosen ...
  1. #1

    Join Date
    Feb 2007
    Location
    Kent
    Posts
    634
    Thank Post
    271
    Thanked 51 Times in 43 Posts
    Rep Power
    40

    Windows Backup, command line

    I'm trying to schedule windows server backups using the command line (wbadmin)

    I have read through the documentation and chosen the commands I want, yet it still tells me I have no volume selected for backup

    wbadmin start backup -backupTarget:"\\hgs-sr-nas\HGS-SR-EXC2 Backup\weekday\" -allCritical -vssFull

    I get the same result even if I deliberately -include:c: (or -include:c:\*)


    any ideas?
    Last edited by Greenbeast; 29th January 2014 at 02:49 PM.

  2. #2

    Join Date
    Feb 2007
    Location
    Kent
    Posts
    634
    Thank Post
    271
    Thanked 51 Times in 43 Posts
    Rep Power
    40
    Hmm ok, made some progress, it does not seem to like using a subfolder on the destination network share

  3. #3

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Shouldn't be an issue using subfolders, I'm using:

    Code:
    wbadmin start backup -backuptarget:\\XYZ-NAS-001\FullBackUps\%date:/=-% -include:C:,D: -exclude:D:\WSUSCache -vssFull -quiet
    On one of my servers.

    Only thing I would say is have you tried removing the end \ ?

  4. Thanks to Steve21 from:

    IWDave (30th January 2014)

  5. #4

    Join Date
    Feb 2007
    Location
    Kent
    Posts
    634
    Thank Post
    271
    Thanked 51 Times in 43 Posts
    Rep Power
    40
    interestingly, I used your exact syntax to give me dated folders, when I run the batch file the command is correctly entered with the date but it says 'remote shared folder does not exist'
    If I remove the date syntax and leave it as the share 'root' is again seems to work fine?

  6. #5

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    I use another part of the script, as it's a larger thing, to make the file based upon the date :P So it makes daily backups in different folders.

    In terms of just this part:

    Code:
    mkdir \\XYZ-NAS-001\FullBackUps\%date:/=-%
    wbadmin start backup -backuptarget:\\XYZ-NAS-001\FullBackUps\%date:/=-% -include:C:,D: -exclude:D:\WSUSCache -vssFull -quiet
    Would make the folder first, then backup to it.

    Steve

  7. #6

    Join Date
    Feb 2007
    Location
    Kent
    Posts
    634
    Thank Post
    271
    Thanked 51 Times in 43 Posts
    Rep Power
    40
    aha! that makes sense!

  8. #7

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Quote Originally Posted by Greenbeast View Post
    aha! that makes sense!
    Aye for some reason Windows backup isn't smart enough to make folders Silly MS!

    Steve

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 11th September 2012, 05:13 PM
  2. Replies: 3
    Last Post: 18th January 2011, 02:30 PM
  3. Backup SQL using Command Line
    By linkazoid in forum How do you do....it?
    Replies: 1
    Last Post: 11th November 2010, 11:02 AM
  4. Windows Server ASR from Command Line
    By dcwhitworth in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 9th January 2009, 02:49 PM
  5. Replies: 3
    Last Post: 4th January 2007, 09:09 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •