diskshadow EXEC fails to see my file


hi,

i'm using free version windows hyper-v server in order familiar virtulization. therefore i'm testing backup procedure in order backup running vm.

i'm using diskshadow this: diskshadow -s backup.scp

contents of backup.scp are:

------------------------------------------------------------------------------------------------------------------

delete shadows all

set context persistent 

set metadata c:\temp\backup.cab 

set verbose on 

begin backup 

     add volume c: alias system

     add volume d: alias drive_d 

     writer verify {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de} 

     create 

     expose %drive_d% y: 

     exec c:\tasks\backup_xcopy.cmd

     unexpose y: 

end backup

delete shadows   

--------------------------------------------------------------------------------------------------------------------


in backup_xcopy.cmd xcopy command copying files need.

the problem when run diskshadow -s backup.scp script quits @ exec command following error: 

>the script file name not valid.
>
>exec <file.cmd>
>        execute script file on local machine.
>        this command used duplicate or restore data part of
>        a backup or restore sequence.
>
>diskshadow exiting.

however, when run diskshow without "-s backup.scp" , type in lines myself, line line, exec command works !

i googled of course , found person having same problem: http://www.send4help.net/using-diskshadow-to-backup-hyper-v-guests-313

i don't why not working script. ?

thanks in advance 

 

hello,

 

little minutes after posting message, found reason why it's not working:

 

do not put spaces before exec command !    :-)

 

anyway, i'm sure sooner or later else make same mistake me (copy/paste code website somewhere) , he/she can learn message.

 

bye

 

marc

 



Windows Server  >  Hyper-V



Comments

Popular posts from this blog

Indexing Server

Schannel Issue

oclist /xml or /?