rsync with password ssh private key code example
Example: rsync with ssh key
# This way you can do the job with your SSH key
rsync -Pav -e "ssh -i $HOME/.ssh/somekey" username@hostname:/from/dir/ /to/dir/
# This way you can do the job with your SSH key
rsync -Pav -e "ssh -i $HOME/.ssh/somekey" username@hostname:/from/dir/ /to/dir/