Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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/
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #rsync #ssh #key
ADD COMMENT
Topic
Name
3+1 =