This is the syntax I think I should be using with rsync to use an identity file to connect:
rsync -
Use either $HOME
$HOME
rsync -avz -e "ssh -p1234 -i \"$HOME/.ssh/1234-identity\"" dir remoteUser@server:
or full path to the key:
rsync -avz -e "ssh -p1234 -i /home/username/.ssh/1234-identity" dir user@server:
Tested with rsync 3.0.9 on Ubuntu