Run on the local server (192.168.1.101) – THE SERVER YOU ARE RSYNCING FROM. # ssh-keygen Enter passphrase (empty for no passphrase): Enter same passphrase again: Use ssh-copy-id, to copy the public key to the remote host. # ssh-copy-id -i ~/.ssh/id_rsa.pub…
Category: Rsync
rsync with non standard port
# rsync -avz -e “ssh -p $portNumber” user@remoteip:/path/to/files/ /local/path/ # rsync -avz -e “ssh -p 2222” user@remoteip:/path/to/files/ /local/path/
rsync from one server to another
Basically, $ rsync options source destination Synchronize Files From Local to Remote (Plesk to cPanel) $ rsync -avz /var/www/vhosts/domain.com/httpdocs/ sshuser@192.168.200.99:/home/user/public_html/ Synchronize Files From Remote to Local )cPanel to Plesk) $ rsync -avz sshuser@198.50.162.99:/home/username/public_html/ /var/www/vhosts/domain.com/httpdocs/ Here is a short summary of…