Jump to content

Recommended Posts

Posted

Hi everybody,

 

I am trying to set up a scheduled backup. I will use wbadmin and not the

graphical interface, because the interface does not allow to backup to

remote servers.

 

I have created a command like this:

 

wbadmin start

backup -backupTarget:\\SLH\BackupWin\YODA\Montag\ -include:c:,d: -noverify -user:Administrator

-password:mypw -vssFull -quiet

 

Now, it would be nice to replace the part '\Montag\' with every day of the

week. Is there a function to do such replacement like %DAYOFWEEK% or

something similar? Where can I find documentation about such functions?

 

Thanks for your time

 

Ole

  • Replies 2
  • Created
  • Last Reply

Popular Days

Guest Dusko Savatovic
Posted

Re: wbadmin

 

Hi Ole,

I'm not a big scripter, but just my 2c.

What's stopping you from creating seven one-liners for each day of the week

and calling appropriate command each day of the week?

I apologize if that's dumb answer.

 

"Ole" <o.weigelt@officeworks.de> wrote in message

news:OjzXdgnGJHA.3932@TK2MSFTNGP03.phx.gbl...

> Hi everybody,

>

> I am trying to set up a scheduled backup. I will use wbadmin and not the

> graphical interface, because the interface does not allow to backup to

> remote servers.

>

> I have created a command like this:

>

> wbadmin start

> backup -backupTarget:\\SLH\BackupWin\YODA\Montag\ -include:c:,d: -noverify

> -user:Administrator -password:mypw -vssFull -quiet

>

> Now, it would be nice to replace the part '\Montag\' with every day of the

> week. Is there a function to do such replacement like %DAYOFWEEK% or

> something similar? Where can I find documentation about such functions?

>

> Thanks for your time

>

> Ole

Guest Peter Foldes
Posted

Re: wbadmin

 

Ole

 

Why not post this over to the scripting group. They have many who are experts on scripting

 

http://news://msnews.microsoft.com/microsoft.public.windows.server.scripting

 

--

Peter

 

Please Reply to Newsgroup for the benefit of others

Requests for assistance by email can not and will not be acknowledged.

 

"Ole" <o.weigelt@officeworks.de> wrote in message news:OjzXdgnGJHA.3932@TK2MSFTNGP03.phx.gbl...

> Hi everybody,

>

> I am trying to set up a scheduled backup. I will use wbadmin and not the

> graphical interface, because the interface does not allow to backup to

> remote servers.

>

> I have created a command like this:

>

> wbadmin start

> backup -backupTarget:\\SLH\BackupWin\YODA\Montag\ -include:c:,d: -noverify -user:Administrator

> -password:mypw -vssFull -quiet

>

> Now, it would be nice to replace the part '\Montag\' with every day of the

> week. Is there a function to do such replacement like %DAYOFWEEK% or

> something similar? Where can I find documentation about such functions?

>

> Thanks for your time

>

> Ole

>


×
×
  • Create New...