I usually work on it fast enough, but it's a headache.
I have a shell script that loads some information about where to connect and how from a text file, this is done using a read command. It works. It stores the arguments to be sent to RSync in a variable call to $ rsyncargs.
I want to use RSync arg -e, which is used to transfer details to ssh, in my case the port number:
rsync -avz -e "ssh -p 222" dir/ bob@server.com:dir/
the line in the text file looks like this:
-e "ssh -p 222"
The bash line should look something like this:
rsync -avz $rsyncargs $src $dst
it all works, except that the quotes are messy, and I end up with
sending incremental file list
rsync: link_stat "/dir/to/shell/script/222"" failed: No such file or directory (2)
, . ( ..), , , ( ) .
( , ssh )