How do I specify a specifc private key with rsync?

$ rsync <other options> -e "ssh -i <your private key>" <src> <destination>

Answer from here

How do I specify a specific private key with git?

$ GIT_SSH_COMMAND="ssh -i <your key file>" git <command>