Set error not correct

Jun 15, 2013 at 10:40 PM
I am getting errors even though the backups are happening just fine. I am not sure if the problem is with HVbackup or Blat. Any help is much appreciated.

My code:

rem net use F: /user:domain\user password

pushd F: && forfiles.exe -m *.zip -d -4 -c "cmd /c del @path"
popd

c:\hvbackup\HVBackup.exe -a -o F: 1> F:\%computername%_lastlog_out.txt 2> F:\%computername%_lastlog_err.txt && set error=0 || set error=1

:sendmail if ["%error%"] EQU ["1"] (
c:\blat\blat -t emailaddress@domain.com -subject "%computername% HVBackup encountered errors" -body "See attached log files" -attacht "F:\%computername%_lastlog_out.txt,F:\%computername%_lastlog_err.txt"
)
if ["%error%"] EQU ["0"] (
c:\blat\blat -t emailaddress@domain.com -subject "%computername% HVBackup successfully finished" -body "See attached log files" -attacht "F:\%computername%_lastlog_out.txt,F:\%computername%_lastlog_err.txt"
)

goto exit

:exit
exit /b

Here is the lastlog_out.txt:

Cloudbase HyperVBackup 1.0 beta1
Copyright (C) 2012 Cloudbase Solutions Srl
http://www.cloudbasesolutions.com

Initializing VSS

Starting snapshot set for:
Backup Using Child Partition Snapshot\servername

Volumes:
E:\

Component: "Backup Using Child Partition Snapshot\servername"
Archive: "F:servername_20130615140756.zip"
Entry: "servername/Virtual Hard Disks/servername.vhdx"
................................................................................
Entry: "servername/Virtual Machines/GUID.xml"
................................................................................
Deleting snapshot set

Elapsed time: 00:07:39.172

Thank you.