BackupPC Agent for WAPT
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
360B

  1. @echo off
  2. REM Ensure there's no rsync already running
  3. tasklist /FI "IMAGENAME eq rsync.exe" 2>NUL | find /I /N "rsync.exe">NUL
  4. if "%ERRORLEVEL%"=="0" exit 255
  5. tasklist /FI "IMAGENAME eq vshadow.exe" 2>NUL | find /I /N "vshadow.exe">NUL
  6. if "%ERRORLEVEL%"=="0" exit 255
  7. cd \backuppc
  8. cscript pre-cmd.vbs >NUL
  9. rsync.exe %* 2>NUL
  10. echo '1' > wake.up