Does someone know the error message: COM call "(*vssObject)->InitializeForBackup" failed ??
I use diskshadow.exe on hyper-v server 2008 and test my scripts on the command line - everything works. If I let my pb-executable do this job on the server with :
strCmd = "diskshadow -s """ & CURDIR$ & "\mybackup_vhd.txt"""
SHELL strCmd EXIT TO lExitCode
will bring the COM-Error. I try explicit all the 32bit and 64bit variants of diskshadow.exe and cmd.exe but nothing works. Is it win2008 or is it the SHELL command from PB ??
My project is a tcp/ip server that listen on commands from the network and do this backup jobs. All works fine (diskpart, etc.). My actual workaround is to create jobs in the 2008 scheduler an start and stop this jobs from PB (schtasks /RUN /TN "ShadowDelete").
Is there someone who knows this point ?
Script-Example: diskshadow -s mybackup_vhd.txt
set context persistent
set metadata c:\backupserver\metadata.cab
begin backup
add volume c: alias backupname
create <-----------------------------this produced the COM-Error
expose %backupname% shadowhdd
end backup
exit
I use diskshadow.exe on hyper-v server 2008 and test my scripts on the command line - everything works. If I let my pb-executable do this job on the server with :
strCmd = "diskshadow -s """ & CURDIR$ & "\mybackup_vhd.txt"""
SHELL strCmd EXIT TO lExitCode
will bring the COM-Error. I try explicit all the 32bit and 64bit variants of diskshadow.exe and cmd.exe but nothing works. Is it win2008 or is it the SHELL command from PB ??
My project is a tcp/ip server that listen on commands from the network and do this backup jobs. All works fine (diskpart, etc.). My actual workaround is to create jobs in the 2008 scheduler an start and stop this jobs from PB (schtasks /RUN /TN "ShadowDelete").
Is there someone who knows this point ?
Script-Example: diskshadow -s mybackup_vhd.txt
set context persistent
set metadata c:\backupserver\metadata.cab
begin backup
add volume c: alias backupname
create <-----------------------------this produced the COM-Error
expose %backupname% shadowhdd
end backup
exit
Comment