Rsync using SSH RSA auth key

Sep 23 2009

rsynclogo

How to rsync files between two servers when remote server uses an RSA key for authentication.

Format:
rsync $options $host:$from $to

rsync -avz -e "ssh -i key.rsa" \
user@domain.com:/var/www /var/www/backup

The ‘-avz’ options are used for creating archive, being verbose and compressing the file transfer.

‘-e “$command”‘ specifies the shell command to use; in this case calling the SSH RSA key used for authentication

Tags: , ,

Comments Off

Comments are closed at this time.

Performance Optimization WordPress Plugins by W3 EDGE