This problem occurs if you use a slash character and a letter in the following combinations as part of a parameter for a switch:
/j
/p
/g
/t
/n
/f
/d
/ds
/is
/a
/v
/r
/l
/m
/rs
/hc
/um
NTBackup reads each of these character combinations as if it were another switch itself (instead of just part of a switch parameter).
For example, in the following command syntax, the parameter that is used with the
/d switch contains the "/r" character combination. This character combination is read by NTBackup as the
/r switch instead of as part of the
/d parameter:
ntbackup backup "@d:\backup.bks" /j "test backup job" /f "d:\backup.bkf" /d "backup set label /r" /a /v:yes /m copy /hc:off
If this command were to include the
/r switch in the syntax, this problem would not occur. For example, in the following command syntax, the
/d parameter still contains the "/r" character combination. However, because the
/r switch is also clearly stated in the syntax, the problem does not occur:
ntbackup backup "@d:\backup.bks" /j "test backup job" /f "d:\backup.bkf" /d "backup set label /r" /a /v:yes /r:no /m copy /hc:off