Pre-command script to stop backup

  1. Go to Client’s Backup Set in OBS console
  2. Under “Pre-backup command” heading fill out the fields
    1. Name: USB Not Present
    2. Command: IF NOT EXIST %DRIVE_LETTER%: ECHO USBDriveNotConnected >%userprofile%\.obm\ipc\BackupSet\%backup_set_ID%\stop(Where %DRIVE_LETTER% is the letter of the removal drive and %backup_set_ID% is the backup set ID number)

      eg.  IF NOT EXIST F: ECHO USBDriveNotConnected > %userprofile%\.obm\ipc\BackupSet\1425613161521\stop

    3. Working Directory: C:\
  3. Click Update