Greenbeast Posted January 29, 2014 Posted January 29, 2014 (edited) 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? Edited January 29, 2014 by Greenbeast
Greenbeast Posted January 29, 2014 Author Posted January 29, 2014 Hmm ok, made some progress, it does not seem to like using a subfolder on the destination network share
Steve21 Posted January 29, 2014 Posted January 29, 2014 Shouldn't be an issue using subfolders, I'm using: 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 \ ? 1
Greenbeast Posted January 29, 2014 Author Posted January 29, 2014 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?
Steve21 Posted January 29, 2014 Posted January 29, 2014 I use another part of the script, as it's a larger thing, to make the file based upon the date So it makes daily backups in different folders. In terms of just this part: 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
Steve21 Posted January 31, 2014 Posted January 31, 2014 aha! that makes sense! Aye for some reason Windows backup isn't smart enough to make folders Silly MS! Steve
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now