Hello all,
I have a question regarding rsync --read-batch=file over ssh.
I'm doing the following:
When I execute the script, I get the following error:Code:function exec_rsync() { local host=$1 shift ssh $host mkdir -p $src eval sudo rsync --write-batch=/tmp/rsync_disk $rsync_opts -e "'ssh'" $DIRS "'user@${host}:$src'" # eval sudo rsync $rsync_opts -e "'ssh'" $DIRS "'user@${host}:$src'" [ $? -ne 0 ] && exit 1 for host in $* ; do ssh $host mkdir -p $src # eval sudo rsync $rsync_opts -e "'ssh'" $DIRS "'user@${host}:$src'" eval sudo rsync --read-batch=/tmp/rsync_disk $rsync_opts -e "'ssh'" $DIRS "'user@${host}:$src'" [ $? -ne 0 ] && exit 1 done }
Can someone tell me what I'm doing wrong, if I should be setting up an rsync daemon because batch-files aren't supported over ssh, etc?Code:(zsh)$ rsync_disks host host2 user@host password: building file list ... 14498 files to consider [snip] sent 414055 bytes received 60 bytes 75293.64 bytes/sec total size is 34045203836 speedup is 82211.96 remote destination is not allowed with --read-batch rsync error: syntax or usage error (code 1) at main.c(1218) [Receiver=3.0.9]



Adv Reply


Bookmarks