Setting up a new system backup (done several before and they all work fine).  Windows 10 x64 (cygwin with rsync  version 3.1.2) backing up to ubuntu server 16.04 (rsync 3.1.1).  Run test.bat from command window (run as administrator) and it runs fine.

Created scheduled task that runs test.bat and it hangs at "msg checking charset: UTF-8" until the timeout.  I have upped the timeout to 3000 with the same result.  The scheduled task is run as administrator, with run with highest privileges checked. 

contents of test.bat:

rsync  --log-format="%1i %t %b of %l transferred for %f" --progress  --timeout=300 -rltgoD --delete --partial-dir=./rsync_partial --chmod=Du+w,u+r,u+x -e "ssh -p 31122 -i \"/cygdrive/c/Users/administrator/.ssh/id_rsa\"" --stats --files-from=/cygdrive/d/WorkingDIr/c_from_file.dat -vvvvvvvv --exclude-from=/cygdrive/d/WorkingDIr/c_exc_file.dat  / systemID@systemID.WebURL.com:/data/current/systemID/cygdrive/c > "D:\WorkingDIr\systemID.log" 2>&1



Logging file:

FILE_STRUCT_LEN=16, EXTRA_LEN=4
cmd=ssh -p 31122 -i "/cygdrive/c/Users/administrator/.ssh/id_rsa" machine=systemID.WebURL.com user=systemID path=/data/current/systemID/cygdrive/c
cmd[0]=ssh cmd[1]=-p cmd[2]=31122 cmd[3]=-i cmd[4]=/cygdrive/c/Users/administrator/.ssh/id_rsa cmd[5]=-l cmd[6]=systemID cmd[7]=systemID.WebURL.com cmd[8]=rsync cmd[9]=--server cmd[10]=-vvvvvvvvlogDtrRe.iLsfxC cmd[11]=--timeout=3000 cmd[12]=--delete cmd[13]=--stats cmd[14]=--partial-dir cmd[15]=rsync_partial cmd[16]=. cmd[17]=/data/current/systemID/cygdrive/c
opening connection using: ssh -p 31122 -i /cygdrive/c/Users/administrator/.ssh/id_rsa -l systemID systemID.WebURL.com rsync --server -vvvvvvvvlogDtrRe.iLsfxC --timeout=3000 --delete --stats --partial-dir rsync_partial . /data/current/systemID/cygdrive/c  (18 args)
<b>msg checking charset: UTF-8</b>
[sender] io timeout after 3000 seconds -- exiting
[sender] _exit_cleanup(code=30, file=io.c, line=195): entered
rsync error: timeout in data send/receive (code 30) at io.c(195) [sender=3.1.2]
[sender] _exit_cleanup(code=30, file=io.c, line=195): about to call exit(30)

Help will be much appreciated!

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://samba.2283325.n4.nabble.com/Help-rsync-runs-from-command-line-fails-from-task-scheduler-hangs-at-msg-checking-charset-UTF-8-tp4722140.html">Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8</a><br/>
Sent from the <a href="http://samba.2283325.n4.nabble.com/Samba-rsync-f2500462.html">Samba - rsync mailing list archive</a> at Nabble.com.<br/>