I had an error, I did not notice that one of your variable includes ":".
Change my separator character to % in the 3rd solution like this:

rsync="/usr/bin/rsync%-navHz%--delete%--delay-updates%--bwlimit=256%-e%ssh -i 
/root/rsync.id"
local=/mnt/data/html/minicpan
copyto="test01:$local"     # here you use :
IFS="%"                    # use only % (not space) to separate tokens
$rsync $local/ $copyto/    # you can use % or space for extra arguments

Ehud.


--
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to