我有下面说明的批处理脚本,我在任务调度程序(Windows 2008 R2)上运行它。运行时,任务的状态仍在运行,并且耗时太长。我看不到任何错误,甚至在历史或任何日志中都没有。我已经在Windows中设置了正确的所有者和位置权限。任何人都能给我一些灯光吗?谢谢!
SETLOCAL
SET CWRSYNCHOME=C:\scripts\CWRSYNC
SET CYGWIN=nontsec
SET HOME=%HOMEDRIVE%%HOMEPATH%
SET CWOLDPATH=%PATH%
SET PATH=%CWRSYNCHOME%\BIN;%PATH%
rsync -rltDuv --progress -e "ssh -i /cygdrive/c/scripts/id_rsa" /cygdrive/c/backup/ root@123.123.123.123:/path/to/backup/ > c:/scripts/logs.txt 2>&1