Jump to content

Recommended Posts

Posted (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 by Greenbeast
Posted

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 \ ?

  • Thanks 1
Posted

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?

Posted

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:

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...