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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s