My scripts suppose to backup the server c and E drive to the portable segate harddisk attached to it USB, shared as V$ but it kept giving me the above error.
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set month=%%a
for /f "tokens=1-3 delims=/ " %%a in ('date /T') do set day=%%a
for /f "tokens=3-5 delims=/ " %%a in ('date /T') do set year=%%a
cd\
v:
cd serverbackup
md %year%-%month%-%day%
cd %year%-%month%-%day%
md CDrive
md EDrive
Wbadmin start backup -backupTarget:v\serverbackup\%year%-%month%-%day%\CDrive -include:C: -vssFull -quiet > CDrive_log.txt
Wbadmin start backup -backupTarget:v\serverbackup\%year%-%month%-%day%\EDrive -include:E: -vssFull -quiet > EDrive_log.txt