Recursive Copy from one Server to Another

Using SCP is a great way of copying files between remote servers where you have limited options for transferring via GIT or similar.

Here is a simple snippet that assumes you have logged into the master server that will be used as the source for files and folders:

scp -r /var/www/public_html/* [email protected]:public_html/

A similar approach can also be used with Drush for Drupal:

drush rsync @source:%files @target:%files