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.

vsrsync.cmd 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. REM @ECHO OFF
  2. REM *****************************************************************
  3. REM
  4. REM VSRSYNC.CMD - Batch file template to start your rsync command (s).
  5. REM
  6. REM By Michael Stowe
  7. REM *****************************************************************
  8. call vss-setvar.cmd
  9. cd \BackupPC
  10. call part.cmd
  11. SET CWRSYNCHOME=\BACKUPPC
  12. SET CYGWIN=nontsec
  13. SET CWOLDPATH="%PATH%"
  14. SET PATH="\BACKUPPC;%PATH%"
  15. FOR /F "tokens=1,2,3,4,5,6,7" %%G IN ("%MAP%") DO (
  16. if "%SHADOW_DEVICE_1%" NEQ "" dosdev %%G %SHADOW_DEVICE_1%
  17. if "%SHADOW_DEVICE_2%" NEQ "" dosdev %%H %SHADOW_DEVICE_2%
  18. if "%SHADOW_DEVICE_3%" NEQ "" dosdev %%I %SHADOW_DEVICE_3%
  19. if "%SHADOW_DEVICE_4%" NEQ "" dosdev %%J %SHADOW_DEVICE_4%
  20. if "%SHADOW_DEVICE_5%" NEQ "" dosdev %%K %SHADOW_DEVICE_5%
  21. if "%SHADOW_DEVICE_6%" NEQ "" dosdev %%L %SHADOW_DEVICE_6%
  22. if "%SHADOW_DEVICE_7%" NEQ "" dosdev %%M %SHADOW_DEVICE_7%
  23. )
  24. REM Go into daemon mode, we'll kill it once we're done
  25. rsync -v -v --daemon --config=rsyncd.conf --no-detach --log-file=diagnostic.txt
  26. FOR /F "tokens=1,2,3,4,5,6,7" %%G IN ("%MAP%") DO (
  27. if "%SHADOW_DEVICE_1%" NEQ "" dosdev -r -d %%G
  28. if "%SHADOW_DEVICE_2%" NEQ "" dosdev -r -d %%H
  29. if "%SHADOW_DEVICE_3%" NEQ "" dosdev -r -d %%I
  30. if "%SHADOW_DEVICE_4%" NEQ "" dosdev -r -d %%J
  31. if "%SHADOW_DEVICE_5%" NEQ "" dosdev -r -d %%K
  32. if "%SHADOW_DEVICE_6%" NEQ "" dosdev -r -d %%L
  33. if "%SHADOW_DEVICE_7%" NEQ "" dosdev -r -d %%M
  34. )