bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with rsync and Missing trailing-" in remote-shell command.


From: dpich
Subject: Re: help with rsync and Missing trailing-" in remote-shell command.
Date: Mon, 20 Jun 2016 08:41:18 -0700 (PDT)
User-agent: G2/1.0

Thanks for the advise!

That did it.  The command is working fine now with the following setup:

currentuser="$(id -u -n)"
OPTS=(-q -avz --delete -e 'ssh -i /home/'$currentuser'/.ssh/id_rsa' 
--rsync-path='sudo rsync')
SRC=(/etc/nginx/)
RSYNC_CMD=(rsync)

for h in balancer0{1..2} ; do
  DST=$currentuser@$h:/etc/nginx/
  $RSYNC_CMD "${OPTS[@]}" ${SRC} ${DST}
done


reply via email to

[Prev in Thread] Current Thread [Next in Thread]