Technology

Rsync – source to target

Get ssh keys from source

copy ssh keys to target

edit sshd source with the default username to target

execute:

/usr/bin/rsync -azL –timeout=59 –rsh=’ssh -p 22 -l username’ /var/www/source 198.ipaddress-target:/var/www/directory-target

 

 

Advertisements