I've placed the ff. code in rsync.bat:
for %%A in (%VAR_REMOTE_HOST%) do ( set VAR_TARGET=%USER%@%%A:%VAR_TARGET_DIR% echo Rsync Source Dir: %VAR_SOURCE% setlocal ENABLEDELAYEDEXPANSION echo Rsync Target Dir: !VAR_TARGET! endlocal echo Syncing files... rsync -rltgDvzO --chmod=Dugo=rwX,Fugo=rw -e ssh %VAR_SOURCE% %VAR_TARGET% )
where VAR_REMOTE_HOST is a comma-separated list of servers.
It outputs a list of files to rsync, along with permissions, sizes and timestamps. It even displays an rsync log at the end (sent bytes, received bytes, bytes/sec) However, the files are not sent to the target. It's as if it ran a dry-run. (but no -n option)
See screenshot here. (http://postimg.org/image/vc0kei1j1/)
Has anyone else encountered this?